UserTokenStore class

Manages anonymous persistent user token UUID.

Constructors

UserTokenStore([TokenStorageAdapter? storage])

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token → String
Synchronously returns currently held token.
no setter

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

shared → UserTokenStore
no setter

Static Methods

configure(TokenStorageAdapter storage) → void

Constants

storageKey → const String