Skip to main content

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​

ParameterTypeDescription
__namedParameters{ clientStore?: ClientStore; getClientDisplayFallback?: (params) => ClientDisplay | undefined; id: string; store: PendingAuthorizationStore; }-
__namedParameters.clientStore?ClientStoreSource of the registered client's client_name and logo_uri.
__namedParameters.getClientDisplayFallback?(params) => ClientDisplay | undefinedFills display fields the registered client omits.
__namedParameters.idstringThe id from the consent URL's CONSENT_REQUEST_PARAM.
__namedParameters.storePendingAuthorizationStorePersistence for pending authorizations.

Returns​

Promise<ConsentRequestView | undefined>