AuthRepository class abstract

harmony_auth repository.

this is a wrapper around rest and storage.

it should perform operations in a atomic way. but without adding locked functionality we can not guarantee it.

Available Extensions

Constructors

AuthRepository({required AuthStorage storage, required AuthRest rest})
standard implementation
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
refreshTokensMatcher AuthMatcher
matcher to check to see if this call is from refresh tokens.
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
refreshTokens() Future<void>
refresh and store tokens.
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