Skip to main content
The DeviceCodeConfirmation class implements the device-code-confirmation screen functionality. This screen is displayed when the user needs to confirm or cancel the device code activation.

Constructors

Create an instance of DeviceCodeConfirmation screen manager
Example
import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';
const deviceCodeConfirmation = new DeviceCodeConfirmation();

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the device-code-confirmation screen.
Provides information about the user’s organization, such as organization id and name.
Contains data about the current prompt in the authentication flow.
Contains details specific to the device-code-confirmation screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the device-code-confirmation screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during the device code confirmation flow.
Details of the active user, including username, email, and roles.

Methods

confirm
(options ?)
This method confirms the device code and proceeds with the activation.
Example
import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';

const deviceCodeConfirmation = new DeviceCodeConfirmation();
await deviceCodeConfirmation.confirm();
options
OPTIONAL
Optional payload.
cancel
(options ?)
This method cancels the device code activation flow.
Example
import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';

const deviceCodeConfirmation = new DeviceCodeConfirmation();
await deviceCodeConfirmation.cancel();
options
OPTIONAL
Optional payload.
getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.