Skip to content

DeviceAuthorizationResponse

Defined in: src/oauth/authorize.ts:141

Response from the OAuth2 device authorization endpoint. As specified in https://datatracker.ietf.org/doc/html/rfc8628#section-3.2

device_code: string

Defined in: src/oauth/authorize.ts:143

The device verification code.


expires_in: number

Defined in: src/oauth/authorize.ts:156

The lifetime in seconds of the “device_code” and “user_code”.


optional interval?: number

Defined in: src/oauth/authorize.ts:161

The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.


user_code: string

Defined in: src/oauth/authorize.ts:145

The end-user verification code.


verification_uri: string

Defined in: src/oauth/authorize.ts:150

The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user agent.


optional verification_uri_complete?: string

Defined in: src/oauth/authorize.ts:154

The URI which doesn’t require the user to manually type the user_code, designed for non-textual transmission.