Function: getConsentRequest()
getConsentRequest(
__namedParameters):Promise<ConsentRequestView|undefined>
Defined in: auth-core/src/pendingConsent.ts:327
Loads a pending authorization for the consent screen. Returns undefined
when the id is unknown, expired or already approved, so a link can be
neither reused nor re-approved by someone else.
Parameters
| Parameter | Type | Description |
|---|---|---|
__namedParameters | { clientStore?: ClientStore; getClientDisplayFallback?: (params) => ClientDisplay | undefined; id: string; store: PendingAuthorizationStore; } | - |
__namedParameters.clientStore? | ClientStore | Source of the registered client's client_name and logo_uri. |
__namedParameters.getClientDisplayFallback? | (params) => ClientDisplay | undefined | Fills display fields the registered client omits. |
__namedParameters.id | string | The id from the consent URL's CONSENT_REQUEST_PARAM. |
__namedParameters.store | PendingAuthorizationStore | Persistence for pending authorizations. |
Returns
Promise<ConsentRequestView | undefined>