Skip to main content
Module

x/oauth4webapi/mod.ts>processDeviceAuthorizationResponse

OAuth 2 / OpenID Connect for JavaScript Runtimes
Latest
function processDeviceAuthorizationResponse
import { processDeviceAuthorizationResponse } from "https://deno.land/x/oauth4webapi@v2.10.4/mod.ts";

Validates Response instance to be one coming from the AuthorizationServer.device_authorization_endpoint | as.device_authorization_endpoint.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

response: Response

Resolved value from deviceAuthorizationRequest.

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.