startDeviceAuthorization
startDeviceAuthorization(
options):Promise<DeviceAuthorizationResponse>
Defined in: src/oauth/authorize.ts:194
Begin OAuth2 device authorization flow.
Parameters
Section titled “Parameters”options
Section titled “options”The device authorization parameters.
clientId
Section titled “clientId”string
the client ID returned from client registration.
metadata
Section titled “metadata”the validated OAuth2 metadata for the Identity Provider.
string
the scope to request for authorization.
Returns
Section titled “Returns”Promise<DeviceAuthorizationResponse>
a promise that resolves to a device access token response, or an error response if the user denies authorization or the device code expires.