nylas
    Preparing search index...

    Interface CodeExchangeRequest

    Interface of a Nylas code exchange request

    interface CodeExchangeRequest {
        clientId: string;
        clientSecret?: string;
        code: string;
        codeVerifier?: string;
        redirectUri: string;
    }
    Index

    Properties

    clientId: string

    Client ID of the application.

    clientSecret?: string

    Client secret of the application. If not provided, the API Key will be used instead.

    code: string

    OAuth 2.0 code fetched from the previous step.

    codeVerifier?: string

    The original plain text code verifier (code_challenge) used in the initial authorization request (PKCE).

    redirectUri: string

    Should match the same redirect URI that was used for getting the code during the initial authorization request.