Interface CodeExchangeResponse

Interface of a Nylas code exchange response

Hierarchy

  • CodeExchangeResponse

Properties

accessToken: string

Supports exchanging the code for tokens, or refreshing an access token using [Auth.refreshAccessToken][com.nylas.resources.Auth.refreshAccessToken].

email: string

Email address of the grant that is created.

expiresIn: number

The remaining lifetime of the access token in seconds.

grantId: string

Nylas grant ID that is now successfully created.

idToken?: string

A JWT that contains identity information about the user that is digitally signed by Nylas.

refreshToken?: string

Only returned if the code was requested using [AccessType.OFFLINE][com.nylas.models.AccessType.OFFLINE].

scope: string

List of scopes associated with this token.

tokenType?: string

Currently always Bearer.

Generated using TypeDoc