Represents the response from a token exchange request.

export interface TokenExchangeResponse {
success: boolean;
token?: {
access_token: string;
token_type: string;
expires_in: number;
};
error?: string;
}
interface TokenExchangeResponse {
    success: boolean;
    token?: { access_token: string; token_type: string; expires_in: number };
    error?: string;
}

Properties

Properties

success: boolean

Whether the token exchange was successful.

token?: { access_token: string; token_type: string; expires_in: number }

The token object if successful.

error?: string

The error message if unsuccessful.