Interface GenerateTokenFromCodeRequest

interface GenerateTokenFromCodeRequest {
    client_id?: string;
    code: string;
    code_verifier?: string;
    grant_type?: GrantType;
    redirect_uri?: string;
}

Properties

client_id?: string

Unique identifier of client app, can be found in app setting under admin ui

code: string

The code which you receive while using authorization code flow

code_verifier?: string

When we choose PKCE method to generate token, we need to pass code_verifier which is a cryptographically random string

grant_type?: GrantType

Type of grant used in token request

redirect_uri?: string

Specify the url where the user needs to be redirected after successful login