Package | com.myflashlab.air.extensions.gSignIn |
Class | public class GRestTokens |
Inheritance | GRestTokens Object |
On a successful operation on GSignIn.rest.getTokens
method, an instance of this class will be
returned which will hold the tokens. You can use the getter properties of this object to have access to the tokens.
Property | Defined By | ||
---|---|---|---|
access_token : String [read-only]
The token that your application sends to authorize a Google API request. | GRestTokens | ||
expires_in : Number [read-only]
The remaining lifetime of the access token in seconds. | GRestTokens | ||
id_token : String [read-only]
Note: This property is only returned if your request included an identity scope, such as openid, profile,
or email. | GRestTokens | ||
refresh_token : String [read-only]
A token that you can use to obtain a new access token. | GRestTokens | ||
token_type : String [read-only]
The type of token returned. | GRestTokens |
access_token | property |
access_token:String
[read-only] The token that your application sends to authorize a Google API request.
public function get access_token():String
expires_in | property |
expires_in:Number
[read-only] The remaining lifetime of the access token in seconds.
public function get expires_in():Number
id_token | property |
id_token:String
[read-only] Note: This property is only returned if your request included an identity scope, such as openid, profile, or email. The value is a JSON Web Token (JWT) that contains digitally signed identity information about the user.
public function get id_token():String
refresh_token | property |
refresh_token:String
[read-only] A token that you can use to obtain a new access token. Refresh tokens are valid until the user revokes access. Note that refresh tokens are always returned for installed applications.
public function get refresh_token():String
token_type | property |
token_type:String
[read-only] The type of token returned. At this time, this field's value is always set to Bearer.
public function get token_type():String