Packagecom.myflashlab.air.extensions.gSignIn
Classpublic class GRestTokens
InheritanceGRestTokens Inheritance 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.



Public Properties
 PropertyDefined 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
Property Detail
access_tokenproperty
access_token:String  [read-only]

The token that your application sends to authorize a Google API request.


Implementation
    public function get access_token():String
expires_inproperty 
expires_in:Number  [read-only]

The remaining lifetime of the access token in seconds.


Implementation
    public function get expires_in():Number
id_tokenproperty 
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.


Implementation
    public function get id_token():String
refresh_tokenproperty 
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.


Implementation
    public function get refresh_token():String
token_typeproperty 
token_type:String  [read-only]

The type of token returned. At this time, this field's value is always set to Bearer.


Implementation
    public function get token_type():String