OAuthToken class
A wrapper around Credentials
to provide a more convenient API.
Constructors
- OAuthToken.fromCredentials(Credentials credentials)
-
Creates a new instance of OAuthToken from
Credentials
. A wrapper aroundCredentials
to provide a more convenient API.factory - OAuthToken.fromJson(String json)
-
Creates a new instance of OAuthToken from a JSON string.
A wrapper around
Credentials
to provide a more convenient API.factory
Properties
- accessToken → String
-
The token that is sent to the resource server to prove the authorization
of a client.
final
- expiration → DateTime?
-
The date at which these credentials will expire.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idToken → String?
-
The token that is received from the authorization server to enable
End-Users to be Authenticated, contains Claims, represented as a
JSON Web Token (JWT).
final
- isExpired → bool
-
Whether the token is expired.
no setter
- refreshToken → String?
-
The token that is sent to the authorization server to refresh the
credentials.
final
- 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