Function: genericTokenEndpointRequest()

August 29, 2025 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


โ–ธ genericTokenEndpointRequest(as, client, clientAuthentication, grantType, parameters, options?): Promise<Response>

Performs any Grant request at the as.token\_endpoint. The purpose is to be able to execute grant requests such as Token Exchange Grant Type, JWT Bearer Token Grant Type, or SAML 2.0 Bearer Assertion Grant Type.

Parameters

ParameterTypeDescription
asAuthorizationServerAuthorization Server Metadata.
clientClientClient Metadata.
clientAuthenticationClientAuthClient Authentication Method.
grantTypestringGrant Type.
parametersRecord<string, string> | URLSearchParams | string[][]-
options?Omit<TokenEndpointRequestOptions, "additionalParameters">-

Returns

Promise<Response>

Resolves with a Response to then invoke processGenericTokenEndpointResponse with

See