SessionStore class

Session values in the configured storage under <prefix><key>.

Tokens are stored as plain strings and objects as JSON, which is the format of skill3th_core 0.0.x: changing it signs out every installed app.

Constructors

SessionStore(Skill3Scope scope, StorageProvider _storage)

Properties

hashCode → int
The hash code for this object.
no setterinherited
prefix → String
Prefix of the configured scope.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearUser() → Future<void>
Removes access/refresh tokens, cached user and user session.
fullKey(String key) → String
getObject(String key) → Future
JSON value, null when missing or unreadable.
getString(String key) → Future<String?>
Plain string; an empty one counts as missing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) → Future<void>
setObject(String key, dynamic value) → Future<void>
setString(String key, String value) → Future<void>
toString() → String
A string representation of this object.
inherited
upsert(String key, Map<String, dynamic> patch) → Future<void>
Shallow-merges patch into the stored object.

Operators

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