Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.86 KB

File metadata and controls

33 lines (21 loc) · 1.86 KB

Function: processDeviceCodeResponse()

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


processDeviceCodeResponse(as, client, response, options?): Promise<TokenEndpointResponse>

Validates Device Authorization Grant Response instance to be one coming from the as.token\_endpoint.

Parameters

Parameter Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
response Response Resolved value from deviceCodeGrantRequest.
options? ProcessTokenResponseOptions -

Returns

Promise<TokenEndpointResponse>

Resolves with an object representing the parsed successful response. OAuth 2.0 protocol style errors are rejected using ResponseBodyError. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.

See

RFC 8628 - OAuth 2.0 Device Authorization Grant