> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
> Use this file to discover all available pages before exploring further.

# DeviceCodeConfirmation

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Rw4mCNC9q1oYRI1jLo701/f20c5511fdb777b2dac995a9712813af/Screenshot_2025-04-23_at_16.31.23.png?fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=72490950f23e6931b6365ce25aaa7acd" alt="" width="363" height="485" data-path="docs/images/cdy7uua7fh8z/1Rw4mCNC9q1oYRI1jLo701/f20c5511fdb777b2dac995a9712813af/Screenshot_2025-04-23_at_16.31.23.png" />
</Frame>

Class implementing the Device Code Confirmation screen functionality.
This screen is displayed when the user needs to confirm the device code.

```ts Example theme={null}
import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';
const deviceCodeConfirmation = new DeviceCodeConfirmation();
```

## Constructors

<ParamField body="DeviceCodeConfirmation" type="Constructor">
  Creates an instance of the DeviceCodeConfirmation screen.
</ParamField>

## Properties

<ParamField body="branding" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers">BrandingMembers</a></span>} />

<ParamField body="client" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers">ClientMembers</a></span>} />

<ParamField body="organization" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers">OrganizationMembers</a></span>} />

<ParamField body="prompt" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers">PromptMembers</a></span>} />

<ParamField body="screen" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnDeviceCodeConfirmation">ScreenMembersOnDeviceCodeConfirmation</a></span>} />

<ParamField body="tenant" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TenantMembers">TenantMembers</a></span>} />

<ParamField body="transaction" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers">TransactionMembers</a></span>} />

<ParamField body="untrustedData" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>} />

<ParamField body="user" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UserMembers">UserMembers</a></span>} />

<ParamField body="screenIdentifier" type="string" />

## Methods

<ParamField body="cancel" type="Promise<void>">
  Cancels the device code flow.

  ```typescript Example theme={null}
  import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';

  const deviceCodeConfirmation = new DeviceCodeConfirmation();
  await deviceCodeConfirmation.cancel();
  ```

  <Expandable title="Parameters">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/CustomOptions">CustomOptions</a></span>}>
      Optional custom options to include with the request.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="confirm" type="Promise<void>">
  Confirms the device code.

  ```typescript Example theme={null}
  import DeviceCodeConfirmation from '@auth0/auth0-acul-js/device-code-confirmation';

  const deviceCodeConfirmation = new DeviceCodeConfirmation();
  await deviceCodeConfirmation.confirm();
  ```

  <Expandable title="Parameters">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/CustomOptions">CustomOptions</a></span>}>
      Optional custom options to include with the request.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  Retrieves the array of transaction errors from the context, or an empty array if none exist.

  An array of error objects from the transaction context.
</ParamField>
