OAuthToken class

Holds information of a token issued by an OAuth authorization endpoint.

Annotations

Constructors

OAuthToken(String accessToken, String refreshToken, String tokenType, int expiresIn, String scope)
Constructor
OAuthToken.fromJson(Map<String, dynamic> json)
factory
OAuthToken.fromMap(Map<String, dynamic> map)
Constructor taking a Map.

Properties

accessToken String
The OAuth access token.
final
accessTokenExpiryDate DateTime
Calculate the date of expiration for the access token. [...]
read-only
expiresIn int
Expires in seconds.
read / write
hasExpired bool
Has the access token expired?
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
issuedDate DateTime
The date the access token was issued.
final
refreshToken String
The OAuth refresh token.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope String
Scope of this token: [...]
final
tokenInfo String
read-only
tokenType String
The type of token.
final

Methods

clone() OAuthToken
Clone this token.
expire() → void
Expire the authenticated OAuth token for this user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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