deno.land / x / oauth4webapi@v1.2.2 / docs / functions / deviceCodeGrantRequest.md

deviceCodeGrantRequest.md

Function: deviceCodeGrantRequest

💗 Help the project

â–¸ deviceCodeGrantRequest(as, client, deviceCode, options?): Promise<Response>

Performs a Device Authorization Grant request at the as.token_endpoint.

see RFC 8628 - OAuth 2.0 Device Authorization Grant

see draft-ietf-oauth-dpop-10 - OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP)

Parameters

Name Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
deviceCode string Device Code.
options? TokenEndpointRequestOptions -

Returns

Promise<Response>

oauth4webapi

Version Info

Tagged at
2 years ago