Creates an instance of the CustomizedConsent
screen manager.
The constructor initializes the BaseContext
and sets up the screen
property
with an instance of ScreenOverride
tailored for the customized consent screen.
Holds the specific screen data and properties for the Customized Consent screen,
processed by ScreenOverride
. This includes scopes
and authorizationDetails
.
Static
Readonly
screenThe unique identifier for the Customized Consent screen.
This static property is used by the SDK's BaseContext
to ensure that the
class is instantiated in the correct screen context.
Submits the user's decision to accept (grant) the requested permissions and authorization details.
This method prepares and posts form data to the /u/customized-consent?state=<transaction_state>
endpoint
with action: "accept"
. The transaction state is automatically included in both the
URL query parameter and the form body.
Optional
payload: Classes.CustomOptionsOptional. An object for any custom key-value pairs to be sent with the request. These parameters will be included in the form data submitted to the server.
A promise that resolves once the form submission is initiated. Typically, a successful submission leads to a server-side redirect.
Submits the user's decision to deny (reject) the requested permissions and authorization details.
This method prepares and posts form data to the /u/customized-consent?state=<transaction_state>
endpoint
with action: "deny"
. The transaction state is automatically included in both the
URL query parameter and the form body.
Optional
payload: Classes.CustomOptionsOptional. An object for any custom key-value pairs to be sent with the request. These parameters will be included in the form data submitted to the server.
A promise that resolves once the form submission is initiated. A successful submission usually results in a server-side redirect.
CustomizedConsent
Example