import { processAuthorizationCodeOpenIDResponse } from "https://deno.land/x/oauth4webapi@v2.1.0/mod.ts";
(OpenID Connect only) Validates Authorization Code Grant Response instance to be one coming from
the AuthorizationServer.token_endpoint | as.token_endpoint
.
Parameters
Authorization Server Metadata.
Client Metadata.
Resolved value from authorizationCodeGrantRequest.
Expected ID Token nonce
claim value. Default is expectNoNonce.
ID Token IDToken.auth_time | auth_time
claim value will be checked to be
present and conform to the maxAge
value. Use of this option is required if you sent a
max_age
parameter in an authorization request. Default is
Client.default_max_age | client.default_max_age
and falls back to
skipAuthTimeCheck.
Returns
Resolves with an object representing the parsed successful response, or an object representing an OAuth 2.0 protocol style error. Use isOAuth2Error to determine if an OAuth 2.0 error was returned.