AuthFrameworkSessionHooks<TContext> class final

Lifecycle hooks for a framework-owned session surrounding sign-out.

beforeSignOut runs after the current auth session has been resolved but before auth records are revoked. afterSignOut runs after the auth principal has been cleared and any requested framework-session destruction has been applied. The latter is the appropriate place to expire a host session cookie or commit an equivalent response mutation.

Constructors

AuthFrameworkSessionHooks({AuthFrameworkSessionHook<TContext>? beforeSignOut, AuthFrameworkSessionHook<TContext>? afterSignOut})
Creates optional hooks for the framework session sign-out lifecycle.
const

Properties

afterSignOut AuthFrameworkSessionHook<TContext>?
Hook invoked after the auth principal and framework session are cleared.
final
beforeSignOut AuthFrameworkSessionHook<TContext>?
Hook invoked before auth records are revoked.
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether neither lifecycle hook was supplied.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited