AuthStorage class abstract

harmony_auth storage for tokens

it will be backed by shared_preferences by default

Available Extensions

Constructors

AuthStorage()
standard implementation
const
factory
AuthStorage.inMemory()
inMemory implementation
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Future<AuthStatus>
check status by checking if token is available or not.
no setter
statusStream Stream<AuthStatus>
status stream
no setter

Methods

getToken() Future<AuthToken?>
get token
initializeStatusStream() Future<void>
initialize status stream
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeToken() Future<void>
remove token
setToken(AuthToken token) Future<void>
set token
toString() String
A string representation of this object.
inherited

Operators

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