import { validateAuthResponse } from "https://deno.land/x/oauth4webapi@v2.1.0/src/index.ts";
Validates an OAuth 2.0 Authorization Response or Authorization Error Response message returned
from the authorization server's
AuthorizationServer.authorization_endpoint | as.authorization_endpoint
.
Parameters
Authorization Server Metadata.
client: Client
Client Metadata.
parameters: URLSearchParams | URL
Authorization response.
Expected state
parameter value. Default is expectNoState.
Returns
CallbackParameters | OAuth2Error
Validated Authorization Response parameters or Authorization Error Response.