PendingRequest
Interface: PendingRequest
Defined in: packages/oauth/src/pending.ts:11
Validated authorization request waiting for login and consent, kept in an encrypted cookie
Properties
clientId
clientId:
string
Defined in: packages/oauth/src/pending.ts:15
client_id
codeChallenge?
optionalcodeChallenge?:string
Defined in: packages/oauth/src/pending.ts:21
PKCE S256 challenge (code flow)
csrf
csrf:
string
Defined in: packages/oauth/src/pending.ts:33
CSRF token bound to this request
expires
expires:
number
Defined in: packages/oauth/src/pending.ts:35
Expiry (ms since epoch)
flow
flow:
"code"|"device"
Defined in: packages/oauth/src/pending.ts:13
Authorization code or device flow
hostname?
optionalhostname?:string
Defined in: packages/oauth/src/pending.ts:25
Hostname of the device requesting access, shown on the consent page
redirectUri?
optionalredirectUri?:string
Defined in: packages/oauth/src/pending.ts:17
Validated redirect_uri (code flow)
resource?
optionalresource?:string
Defined in: packages/oauth/src/pending.ts:27
Resource the tokens are bound to (RFC 8707), validated (code flow)
scope
scope:
string
Defined in: packages/oauth/src/pending.ts:23
Requested scope, normalized
state?
optionalstate?:string
Defined in: packages/oauth/src/pending.ts:19
Client state, echoed on the redirect
userCode?
optionaluserCode?:string
Defined in: packages/oauth/src/pending.ts:29
Device user code (device flow)
userId?
optionaluserId?:string
Defined in: packages/oauth/src/pending.ts:31
User the request is bound to: the signed-in user when consent is first shown