import { processClientCredentialsResponse } from "https://deno.land/x/oauth4webapi@v3.1.2/mod.ts";
Validates Client Credentials Grant !Response instance to be one coming from the
AuthorizationServer.token_endpoint | as.token_endpoint
.
Parameters
Authorization Server Metadata.
client: Client
Client Metadata.
response: Response
Resolved value from clientCredentialsGrantRequest.
optional
options: JWEDecryptOptionsReturns
Promise<TokenEndpointResponse>
Resolves with an object representing the parsed successful response. OAuth 2.0 protocol style errors are rejected using ResponseBodyError. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.