DVSessionStore class abstract
Where sessions live.
Memory for one process and tests; DVDatabaseSessionStore over any DVDatabaseAdapter — SQLite by default — when a session has to survive a restart or be seen by more than one backend process.
Constructors
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
-
byId(
String id) → Future< DVSessionRecord?> -
byTokenHash(
String tokenHash) → Future< DVSessionRecord?> -
debugRows(
) → Future< List< Map< >String, Object?> > - The stored rows as they are held, for tests that prove what is and is not written down.
-
forUser(
String userId) → Future< List< DVSessionRecord> > -
Every session of
userId, revoked or not. -
insert(
DVSessionRecord record) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
String oldTokenHash, DVSessionRecord record) → Future< void> -
Moves the session stored under
oldTokenHashtorecord, in one step, so there is no moment where both tokens authenticate. -
revoke(
String id, DateTime at) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
touch(
String tokenHash, DateTime lastSeenAt) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited