Skip to main content
CustomizedConsentMembers
Example

Properties

Provides access to the specific properties and data of the Customized Consent screen, including the list of scopes and authorizationDetails being requested.

Methods

accept
Promise<void>
Submits the user’s decision to accept (grant) the requested permissions and authorization details. This action posts to the /u/customized-consent endpoint with action: "accept". The transaction state is automatically included.A promise that resolves when the accept action is successfully submitted. On success, Auth0 typically redirects the user back to the application or to the next step in the authentication flow.

Throws

Throws an error if the form submission fails (e.g., network issue, invalid state). Server-side errors (like “invalid_request”) will be reflected in this.transaction.errors after the operation, rather than being thrown as JavaScript errors.
Example
deny
Promise<void>
Submits the user’s decision to deny (reject) the requested permissions and authorization details. This action posts to the /u/customized-consent endpoint with action: "deny". The transaction state is automatically included.A promise that resolves when the deny action is successfully submitted. On success, Auth0 typically redirects the user, potentially showing an access denied message or returning an error to the application.

Throws

Throws an error if the form submission fails (e.g., network issue, invalid state). Server-side errors are reflected in this.transaction.errors.
Example