UserTokenStore class
Manages anonymous persistent user token UUID.
Constructors
- UserTokenStore([TokenStorageAdapter? storage])
Properties
Methods
-
getToken(
) → Future< String> - Asynchronously retrieves or restores token from storage.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetToken(
) → Future< String> - Resets token to a newly generated UUID.
-
setToken(
String token) → Future< void> - Overrides or sets custom user token.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
no setter
Static Methods
-
configure(
TokenStorageAdapter storage) → void
Constants
- storageKey → const String