Code Exchange Response
Class representation of a Nylas code exchange response
Constructors
Link copied to clipboard
public CodeExchangeResponse CodeExchangeResponse(@Json(name = "access_token" ) String accessToken, @Json(name = "grant_id" ) String grantId, @Json(name = "expires_in" ) Integer expiresIn, @Json(name = "scope" ) String scope, @Json(name = "email" ) String email, @Json(name = "refresh_token" ) String refreshToken, @Json(name = "id_token" ) String idToken, @Json(name = "token_type" ) String tokenType)
Properties
Link copied to clipboard
Supports exchanging the code for tokens, or refreshing an access token using Auth.refreshAccessToken.
Link copied to clipboard
Only returned if the code was requested using AccessType.OFFLINE.
Functions
Link copied to clipboard
Supports exchanging the code for tokens, or refreshing an access token using Auth.refreshAccessToken.
Link copied to clipboard
The remaining lifetime of the access token in seconds.
Link copied to clipboard
Nylas grant ID that is now successfully created.
Link copied to clipboard
A JWT that contains identity information about the user that is digitally signed by Nylas.
Link copied to clipboard
Only returned if the code was requested using AccessType.OFFLINE.
Link copied to clipboard
Currently always Bearer.