> ## 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.

# DeviceCodeActivation

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/generaltranslationinc/bJAwjuRiJwaYWdNy/docs/images/cdy7uua7fh8z/2O0X9zVXut4NCScLVcrqf9/45b13c2807c5cf40327ecd2b6231f66a/Screenshot_2025-04-23_at_15.07.42.png?fit=max&auto=format&n=bJAwjuRiJwaYWdNy&q=85&s=bc3cd791940d13202b3e4455f2c6392a" alt="" width="363" height="489" data-path="docs/images/cdy7uua7fh8z/2O0X9zVXut4NCScLVcrqf9/45b13c2807c5cf40327ecd2b6231f66a/Screenshot_2025-04-23_at_15.07.42.png" />
</Frame>

Class implementing the Device Code Activation screen functionality.
This screen is displayed when the user needs to enter the code on their device to activate it.

```ts Example theme={null}
import DeviceCodeActivation from '@auth0/auth0-acul-js/device-code-activation';
const deviceCodeActivationManager = new DeviceCodeActivation();
async function activateDeviceCode(code) {
  try {
   await deviceCodeActivationManager.continue({ code });
   console.log('Device code activation successful.');
  } catch (error) {
   console.error('Error during device code activation:', error);
  }
}
```

## Constructors

<ParamField body="DeviceCodeActivation" type="Constructor">
  Creates an instance of the DeviceCodeActivation 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/ScreenMembers">ScreenMembers</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="continue" type="Promise<void>">
  Submits the device code entered by the user.
  This action is triggered when the user enters the code displayed on their device and submits the form.

  A promise that resolves when the code is successfully submitted.

  ```typescript Example theme={null}
  import DeviceCodeActivation from '@auth0/auth0-acul-js/device-code-activation';
  const deviceCodeActivationManager = new DeviceCodeActivation();
  async function activateDeviceCode(code) {
    try {
     await deviceCodeActivationManager.continue({ code });
     console.log('Device code activation successful.');
    } catch (error) {
     console.error('Error during device code activation:', error);
    }
  }
  ```

  Rejects with an error if the submission fails.

  <Expandable title="Parameters">
    <ParamField body="payload" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/DeviceCodeActivationContinueOptions">DeviceCodeActivationContinueOptions</a></span>}>
      An object containing the code entered by the user and any custom payload.

      **Properties**

      <ParamField body="code" type="string" />
    </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>
