Skip to main content

Function: denyConsentRequest()

denyConsentRequest(__namedParameters): Promise<void>

Defined in: auth-core/src/pendingConsent.ts:484

Discards a pending authorization the user declined. An approved request is left alone, so a stale deny from another tab cannot cancel an approval about to be redeemed. The consent screen then renders its own "nothing was connected" state; it never navigates to the client's redirect_uri.

Parameters​

ParameterTypeDescription
__namedParameters{ id: string; store: PendingAuthorizationStore; }-
__namedParameters.idstringThe pending authorization's id.
__namedParameters.storePendingAuthorizationStorePersistence for pending authorizations.

Returns​

Promise<void>