pub trait SessionRevocation:
Debug
+ Send
+ Sync {
// Required method
fn is_active<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sub: &'life1 str,
sid: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, SessionRevocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Per-session liveness check.
sub is the subject claim (ppnum_id ULID); sid is the session
row id from Claims.sid. When Claims.sid is None, the engine
skips this gate (legacy / non-session-bound tokens admit) — this
trait is never called with an empty sid.