DVDatabaseSessionStore class
Sessions in a database table, through DVDatabaseAdapter.
Issues only the SQL subset the in-memory adapter runs, so the same store works with no database configured, on SQLite, and on the server adapters.
- Implemented types
Constructors
- DVDatabaseSessionStore(DVDatabaseAdapter adapter, {String table = 'dv_sessions'})
Properties
- adapter → DVDatabaseAdapter
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → String
-
final
Methods
-
byId(
String id) → Future< DVSessionRecord?> -
override
-
byTokenHash(
String tokenHash) → Future< DVSessionRecord?> -
override
-
debugRows(
) → Future< List< Map< >String, Object?> > -
The stored rows as they are held, for tests that prove what is and is
not written down.
override
-
forUser(
String userId) → Future< List< DVSessionRecord> > -
Every session of
userId, revoked or not.override -
insert(
DVSessionRecord record) → Future< void> -
override
-
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.override -
revoke(
String id, DateTime at) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
touch(
String tokenHash, DateTime lastSeenAt) → Future< void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited