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

x/oauth4webapi/mod.ts>processDeviceCodeResponse

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

Validates Device Authorization Grant Response instance to be one coming from the AuthorizationServer.token_endpoint | as.token_endpoint.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

response: Response

Resolved value from deviceCodeGrantRequest.

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.