Parameters required for exchanging an authorization code for an access token.

export interface TokenExchangeParams {
clientId: string;
clientSecret: string;
redirectUri: string;
code: string;
}
interface TokenExchangeParams {
    clientId: string;
    clientSecret: string;
    redirectUri: string;
    code: string;
}

Properties

clientId: string

The client ID of the application.

clientSecret: string

The client secret of the application.

redirectUri: string

The redirect URI used in the OAuth flow.

code: string

The authorization code received from the OAuth provider.