OAuth class

OAuth Client

Constructors

OAuth({required String tokenUrl, required String clientId, required String clientSecret, Dio? dio, OAuthStorage? storage, OAuthTokenExtractor? extractor, OAuthTokenValidator? validator})

Properties

clientId String
getter/setter pair
clientSecret String
getter/setter pair
dio ↔ Dio
getter/setter pair
extractor OAuthTokenExtractor
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage OAuthStorage
getter/setter pair
tokenUrl String
getter/setter pair
validator OAuthTokenValidator
getter/setter pair

Methods

fetchOrRefreshAccessToken() Future<OAuthToken?>
return current access token or refresh
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshAccessToken() Future<OAuthToken>
Refresh Access Token
requestToken(OAuthGrantType grantType) Future<OAuthToken>
Request a new Access Token using a strategy
requestTokenAndSave(OAuthGrantType grantType) Future<OAuthToken>
toString() String
A string representation of this object.
inherited

Operators

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