Mayson Monorepo Documentation
    Preparing search index...
    interface OAuthTokenParams {
        grant_type: "authorization_code" | "refresh_token";
        code?: string;
        refresh_token?: string;
        scope?: string;
        assert_capabilities?: string[];
    }
    Index

    Properties

    grant_type: "authorization_code" | "refresh_token"

    'authorization_code' when turning an authorization code into an access token, or 'refresh_token' when using a refresh token to get a new access token.

    code?: string

    The value of the code or refresh_token, depending on the grant_type.

    refresh_token?: string

    The value of the code or refresh_token, depending on the grant_type.

    scope?: string

    When requesting a new access token from a refresh token, any scope that has an equal or lesser scope as the refresh token. Has no effect when requesting an access token from an authorization code. Defaults to the scope of the refresh token.

    assert_capabilities?: string[]

    Express only Check whether the suggested_capabilities were applied to the connected account.