SessionProvider<TAuthResult, TSession extends Session, TUserId> class abstract

Interface for session persistence.

Implementers

Constructors

SessionProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createSession(TAuthResult authResult) Future<TSession>
Creates a new session using the result data given by AuthProvider.
getActiveSessions() Future<List<TSession>>
Returns all active sessions.
getUserSession(TUserId userId) Future<List<TSession>>
Finds all active user sessions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redeemToken(String sessionToken) Future<TSession>
Finds and returns the session associated with the token and resets timeout. Throws if timed out or token invalid.
toString() String
A string representation of this object.
inherited

Operators

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