TokenStorage class

Constructors

TokenStorage(String key, {BaseStorage? storage})

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage BaseStorage
getter/setter pair

Methods

addToken(AccessTokenResponse tknResp) Future<void>
clearScopes(List<String> scopes) List<String>
deleteAllTokens() Future<bool>
deleteToken(List<String> scopes) Future<bool>
getScopeKey(List<String> scope) String
getSortedScopes(List<String> scopes) List
getToken(List<String> scopes) Future<AccessTokenResponse?>
Looks for a token in the storage that matches the required scopes. If a token in the storage has been generated for a superset of the requested scopes, it is considered valid.
insertToken(AccessTokenResponse tknResp) Future<Map<String, Map>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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