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
Methods
-
clearUser(
) → Future< void> - Removes access/refresh tokens, cached user and user session.
-
fullKey(
String key) → String -
getObject(
String key) → Future -
JSON value,
nullwhen 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
patchinto the stored object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited