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

Classe qui implémente la fonctionnalité de l’écran de confirmation du code de l’appareil.
Cet écran s’affiche lorsque l’utilisateur doit confirmer le code de l’appareil.

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

<div id="constructors">
  ## Constructeurs
</div>

<ParamField body="DeviceCodeConfirmation" type="Constructor">
  Crée une instance de l’écran DeviceCodeConfirmation.
</ParamField>

<div id="properties">
  ## Propriétés
</div>

<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" />

<div id="methods">
  ## Méthodes
</div>

<ParamField body="cancel" type="Promise<void>">
  Annule le flux Device Code.

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

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

  <Expandable title="Paramètres">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/CustomOptions">CustomOptions</a></span>}>
      Options personnalisées facultatives à inclure avec la requête.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="confirm" type="Promise<void>">
  Confirme le code de dispositif.

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

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

  <Expandable title="Paramètres">
    <ParamField body="payload?" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/CustomOptions">CustomOptions</a></span>}>
      Options personnalisées facultatives à inclure avec la requête.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="getErrors" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/Error">Error</a>[]</span>}>
  Récupère le tableau des erreurs de transaction à partir du contexte, ou un tableau vide s’il n’en existe aucune.

  Un tableau d’objets d’erreur provenant du contexte de la transaction.
</ParamField>
