TokenRepo class

Constructors

TokenRepo()

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

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

Static Methods

fetchRemoteToken({required String clientId, required String clientSecret, required String pkce, required String code, required String stateSecret, String encrypter(String plaintext)?, String decrypter(String ciphertext)?}) Future<void>
This method fetches the token that grants temporary access to the bridge.
fetchToken({String decrypter(String ciphertext)?}) Future<String?>
Returns a token for remote access.
fetchTokenData({String decrypter(String ciphertext)?}) Future<Map<String, dynamic>?>
Returns a token for remote access along with its refresh token, expiration date, and type.
getToken({String decrypter(String ciphertext)?}) Future<String?>
Returns a token for remote access.
refreshRemoteToken({required String clientId, required String clientSecret, String encrypter(String plaintext)?, String decrypter(String ciphertext)?}) Future<void>
This method fetches the token that grants temporary access to the bridge.

Constants

remoteTokenFile → const String
The name of the file that stores the remote tokens and their data.