buildRevocationRequest
buildRevocationRequest(
discovery,config,token,tokenTypeHint?):HttpRequest|null
Defined in: packages/core/src/revocation.ts:17
Builds an HTTP request to revoke an OAuth 2.0 token.
Returns null if the discovery document has no revocation_endpoint.
Parameters
Section titled “Parameters”discovery
Section titled “discovery”The OIDC discovery document.
config
Section titled “config”The OIDC client configuration.
string
The token to revoke (access or refresh token).
tokenTypeHint?
Section titled “tokenTypeHint?”"refresh_token" | "access_token"
Optional hint indicating whether the token is an access_token or refresh_token.
Returns
Section titled “Returns”HttpRequest | null
An HttpRequest for the revocation endpoint, or null if the endpoint is not available.
RFC 7009 §2.1 — Token Revocation Request