normalizeBearerTokenResponseTokenType
normalizeBearerTokenResponseTokenType(
response):BearerTokenResponse
Defined in: src/oauth/authorize.ts:95
Normalize token_type to use capital case to make consuming the token response easier token_type is case insensitive, and it is spec-compliant for OPs to return token_type: “bearer” Later, when used in auth headers it is case sensitive and must be Bearer See: https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4
Parameters
Section titled “Parameters”response
Section titled “response”ValidTokenResponse
validated token response
Returns
Section titled “Returns”response with token_type set to ‘Bearer’