SessionsModule class

Module managing active user sessions across devices.

Constructors

SessionsModule(SpJwtAuth auth)
Creates a new SessionsModule.

Properties

auth → SpJwtAuth
The underlying authentication client.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

list() → Future<List<Map<String, dynamic>>>
Lists all active sessions for the current user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke(String sessionId) → Future<void>
Revokes an active session by sessionId.
revokeOthers() → Future<void>
Revokes all other active sessions except the current session.
toString() → String
A string representation of this object.
inherited

Operators

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