OAuthCredentials class
Class for handling OAuth credential retrieval and refreshing.
- Inheritance
-
- Object
- Credentials
- OAuthCredentials
Constructors
-
OAuthCredentials.new({required String clientId, required String clientSecret, Dio? dio, BaseOptions? options, Map<
String, String> ? proxies}) - Create new OAuthCredentials.
Properties
- clientId → String
-
OAuth client ID.
finalinherited
- clientSecret → String
-
OAuth client secret.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCode(
) → Future< AuthCodeMap> -
Method for obtaining a new user auth code. First step of token creation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
String refreshToken) → Future< BaseTokenMap> -
Method for requesting a new access token for a given
refreshToken
. Token must have been created by the same OAuth client.override -
tokenFromCode(
String deviceCode) → Future< RefreshableTokenMap> -
Method for verifying user auth code and conversion into a RefreshableTokenMap.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited