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

x/oauth4webapi/build/index.d.ts>validateAuthResponse

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function validateAuthResponse
import { validateAuthResponse } from "https://deno.land/x/oauth4webapi@v2.17.0/build/index.d.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.

optional
expectedState: string | expectNoState | skipStateCheck

Expected state parameter value. Default is expectNoState.

Returns

Validated Authorization Response parameters or Authorization Error Response.