Description
Gets the lifetime of the access token returned by the authorization server.
Applies to
Syntax
objectname.GetExpiresIn ( )
Argument |
Description |
---|---|
objectname |
A reference to the TokenResponse object in which you want to get the lifetime of the access token. |
Return value
Long. Values are:
>0 -- Expiration time of the access token in seconds;
0 -- Never expires.
Examples
The following example shows the use of the GetExpiresIn function to get the lifetime of the access token:
long ll_expiresin TokenResponse lnv_TokenResponse ll_expiresin = lnv_TokenResponse.getexpiresin()
See also