Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oauth4webapi/mod.ts>validateJwtAuthResponse

OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes
Go to Latest
function validateJwtAuthResponse
import { validateJwtAuthResponse } from "https://deno.land/x/oauth4webapi@v2.1.0/mod.ts";

Same as validateAuthResponse but for signed JARM responses.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

parameters: URLSearchParams | URL

JARM authorization response.

optional
expectedState: string | expectNoState | skipStateCheck

Expected state parameter value. Default is expectNoState.

optional
options: HttpRequestOptions

Returns

Promise<CallbackParameters | OAuth2Error>

Validated Authorization Response parameters or Authorization Error Response.