TokenStore class abstract

Token store interface. Implement this your own storage mechanism to store token and refreshToken.

Constructors

TokenStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() FutureOr<void>
Clear token and refreshToken.
getRefreshToken() FutureOr<String?>
Retrieved return refreshToken exists.
getToken() FutureOr<String?>
Retrieve token is exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveTokens({required String token, String? refreshToken}) FutureOr<void>
Store token and refreshToken. token is mandatory.
toString() String
A string representation of this object.
inherited

Operators

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