@moneytree/mt-link-javascript-sdk
    Preparing search index...

    Interface ExchangeTokenOptions

    interface ExchangeTokenOptions {
        code?: string;
        codeVerifier?: string;
        redirectUri?: string;
        state?: string;
    }

    Hierarchy (View Summary)

    Index
    code?: string

    Authorization code from OAuth redirection used to exchange for a token.

    codeVerifier?: string

    PKCE Code verifier used to exchange for a token.

    redirectUri?: string

    OAuth redirection URI, see here for more details.

    Set the default value via MtLinkSdk.init

    state?: string

    The state parameter for OAuth flows, see here for more details.

    If you generate an identifier for the OAuth authorization on your server make sure to set this value explicitly so that you can use it to acquire the access token after the OAuth redirect occurs.

    The default value is a randomly generated uuid, or set via MtLinkSdk.init