nylas
    Preparing search index...

    Interface CodeExchangeResponse

    Interface of a Nylas code exchange response

    interface CodeExchangeResponse {
        accessToken: string;
        email: string;
        expiresIn: number;
        grantId: string;
        idToken?: string;
        provider?: Provider;
        refreshToken?: string;
        scope: string;
        tokenType?: string;
    }
    Index

    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.

    provider?: Provider

    The provider that the code was exchanged with.

    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.