Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth4webapi/src/index.ts>genericTokenEndpointRequest

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function genericTokenEndpointRequest
import { genericTokenEndpointRequest } from "https://deno.land/x/oauth4webapi@v2.17.0/src/index.ts";

Performs any Grant request at the AuthorizationServer.token_endpoint | 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

Authorization Server Metadata.

client: Client

Client Metadata.

grantType: string

Grant Type.

parameters: URLSearchParams | Record<string, string> | string[][]
optional
options: Omit<TokenEndpointRequestOptions, "additionalParameters">