Function: approveConsentRequest()
Call Signature
approveConsentRequest(
args):Promise<ApprovedConsentRequest&object|undefined>
Defined in: auth-core/src/pendingConsent.ts:407
Records the signed-in user's approval of a pending authorization and returns
the /authorize request that resumes it, rebuilt from the stored request
and carrying a one-time resume secret: as resumeParams, plus the full
redirect URL when authorizeUrl is given. Hand it only to the approver:
whoever holds it redeems the approval. Returns undefined when the id is
unknown, expired or already approved, or when scopes asks for more than
was requested.
Parameters
| Parameter | Type |
|---|---|
args | ApproveConsentRequestArgs & object |
Returns
Promise<ApprovedConsentRequest & object | undefined>
Call Signature
approveConsentRequest(
args):Promise<ApprovedConsentRequest|undefined>
Defined in: auth-core/src/pendingConsent.ts:410
Records the signed-in user's approval of a pending authorization and returns
the /authorize request that resumes it, rebuilt from the stored request
and carrying a one-time resume secret: as resumeParams, plus the full
redirect URL when authorizeUrl is given. Hand it only to the approver:
whoever holds it redeems the approval. Returns undefined when the id is
unknown, expired or already approved, or when scopes asks for more than
was requested.
Parameters
| Parameter | Type |
|---|---|
args | ApproveConsentRequestArgs & object |
Returns
Promise<ApprovedConsentRequest | undefined>