Creates an instance of the Consent
screen manager.
The constructor initializes the BaseContext
and sets up the screen
property
with an instance of ScreenOverride
tailored for the consent screen.
Holds the specific screen data and properties for the Consent screen,
processed by ScreenOverride
. This includes the list of scopes
being requested
and the hideScopes
flag.
Static
screenSubmits the user's decision to accept (grant) the requested permissions.
This method prepares and posts form data to the /u/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.
This method prepares and posts form data to the /u/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.
ConsentMembers