deno.land / x / oauth4webapi@v1.2.2 / docs / functions / processDeviceAuthorizationResponse.md
â–¸ processDeviceAuthorizationResponse(as
, client
, response
): Promise
<DeviceAuthorizationResponse
| OAuth2Error
>
Validates Response instance to be one coming from the
as.device_authorization_endpoint
.
see
RFC 8628 - OAuth 2.0 Device Authorization Grant
Name | Type | Description |
---|---|---|
as |
AuthorizationServer |
Authorization Server Metadata. |
client |
Client |
Client Metadata. |
response |
Response |
Resolved value from deviceAuthorizationRequest. |
Promise
<DeviceAuthorizationResponse
| OAuth2Error
>
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.
Version Info