Function: deviceAuthorizationRequest()

August 29, 2025 ยท View on GitHub

๐Ÿ’— 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.


โ–ธ deviceAuthorizationRequest(as, client, clientAuthentication, parameters, options?): Promise<Response>

Performs a Device Authorization Request at the as.device\_authorization\_endpoint.

Parameters

ParameterTypeDescription
asAuthorizationServerAuthorization Server Metadata.
clientClientClient Metadata.
clientAuthenticationClientAuthClient Authentication Method.
parametersRecord<string, string> | URLSearchParams | string[][]Device Authorization Request parameters.
options?DeviceAuthorizationRequestOptions-

Returns

Promise<Response>

Resolves with a Response to then invoke processDeviceAuthorizationResponse with

See

RFC 8628 - OAuth 2.0 Device Authorization Grant