Type alias BearerTokenResponse

BearerTokenResponse: {
    access_token: string;
    expires_at?: number;
    expires_in?: number;
    id_token?: string;
    refresh_token?: string;
    scope: string;
    token_type: "Bearer";
}

The expected response type from the token endpoint during authorization code flow Normalized to always use capitalized 'Bearer' for token_type

See https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4, https://openid.net/specs/openid-connect-basic-1_0.html#TokenOK.

Type declaration

  • access_token: string
  • Optional expires_at?: number
  • Optional expires_in?: number
  • Optional id_token?: string
  • Optional refresh_token?: string
  • scope: string
  • token_type: "Bearer"

Generated using TypeDoc