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

# MfaWebauthnChangeKeyNickname

> Describe los hooks y métodos disponibles para personalizar la pantalla `mfa-webauthn-change-key-nickname` de Universal Login.

La pantalla `mfa-webauthn-change-key-nickname` permite al usuario establecer o actualizar el nombre para mostrar de una clave de seguridad de WebAuthn inscrita.

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/translations/a36DGxO9GrnB8q_X/docs/images/ja-jp/cdy7uua7fh8z/1qsKiEY1kiRSIYqhORr4nQ/ef11f60e9262e0a794dc34964a91bdee/Screenshot_2025-05-22_at_12.22.51.png?fit=max&auto=format&n=a36DGxO9GrnB8q_X&q=85&s=864d41ea1c4c91823573563faf4964b6" alt="MfaWebAuthnChangeKeyNickname" width="363" height="489" data-path="docs/images/ja-jp/cdy7uua7fh8z/1qsKiEY1kiRSIYqhORr4nQ/ef11f60e9262e0a794dc34964a91bdee/Screenshot_2025-05-22_at_12.22.51.png" />
</Frame>

<div id="import">
  ## Importación
</div>

Cada pantalla tiene su propio conjunto de hooks y métodos. El SDK admite **importación parcial** e **importación desde la raíz** para cada pantalla.

* La importación parcial le permite incluir solo el código que necesita para su caso de uso.
* La importación desde la raíz le permite cargar todas las pantallas desde un único paquete, lo que resulta útil cuando desea una compilación unificada para gestionar todas las pantallas posibles.

```jsx Import Example theme={null}
// importación desde la raíz
import { useMfaWebAuthnChangeKeyNickname } from '@auth0/auth0-acul-react';

// importación parcial
import {
  useMfaWebAuthnChangeKeyNickname,
  // Hooks de contexto
  useUser,
  useTenant,
  useBranding,
  useClient,
  useOrganization,
  usePrompt,
  useScreen,
  useTransaction,
  useUntrustedData,
  // Hooks comunes
  useCurrentScreen,
  useAuth0Themes,
  useErrors,
  // Hooks de utilidad
  useChangeLanguage,
  // Métodos
  continueWithNewNickname,
} from "@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname";

function MfaWebAuthnChangeKeyNicknameScreen() {
  const { continueWithNewNickname } = useMfaWebAuthnChangeKeyNickname();
  return (
    <button onClick={() => continueWithNewNickname({ nickname: 'My Security Key' })}>
      Save Nickname
    </button>
  );
}
```

<div id="context-hooks">
  ## Hooks de contexto
</div>

Hooks con ámbito de pantalla que proporcionan acceso de solo lectura a los datos de contexto de Auth0 en la pantalla `mfa-webauthn-change-key-nickname`. Impórtelos desde `@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname`.

<ParamField body="useBranding" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  Este hook proporciona la configuración de marca, como el logotipo, los colores y los ajustes del tema que se muestran en la pantalla `mfa-webauthn-change-key-nickname`.

  ```jsx Example theme={null}
  import { useBranding } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function CustomTheme() {
    const branding = useBranding();
  }
  ```
</ParamField>

<ParamField body="useClient" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/ClientMembers">ClientMembers</a></span>}>
  Este hook proporciona la configuración relacionada con el cliente, como `id`, `name` y `logoUrl`, para la pantalla `mfa-webauthn-change-key-nickname`.

  ```jsx Example theme={null}
  import { useClient } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function AppInfo() {
    const client = useClient();
  }
  ```
</ParamField>

<ParamField body="useOrganization" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  Este hook proporciona información sobre la Organización del usuario si el flujo de MFA está asociado a una Organización. Devuelve `null` cuando no hay contexto de Organización.

  ```jsx Example theme={null}
  import { useOrganization } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function OrgSelector() {
    const organization = useOrganization();
    if (!organization) {
      return <p>No organization context</p>;
    }
  }
  ```
</ParamField>

<ParamField body="usePrompt" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/PromptMembers">PromptMembers</a></span>}>
  Este hook contiene datos sobre la pantalla actual del flujo de autenticación.

  ```jsx Example theme={null}
  import { usePrompt } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function FlowInfo() {
    const prompt = usePrompt();
  }
  ```
</ParamField>

<ParamField body="useScreen" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/ScreenMembersOnMfaWebAuthnChangeKeyNickname">ScreenMembersOnMfaWebAuthnChangeKeyNickname</a></span>}>
  Este hook contiene detalles específicos de la pantalla `mfa-webauthn-change-key-nickname`, incluida su configuración y contexto.

  ```jsx Example theme={null}
  import { useScreen } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function ScreenDebug() {
    const screen = useScreen();
  }
  ```
</ParamField>

<ParamField body="useTenant" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/TenantMembers">TenantMembers</a></span>}>
  Este hook contiene datos relacionados con el inquilino, como `id` y los metadatos asociados.

  ```jsx Example theme={null}
  import { useTenant } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function TenantInfo() {
    const tenant = useTenant();
  }
  ```
</ParamField>

<ParamField body="useTransaction" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  Este hook proporciona datos específicos de la transacción para la pantalla `mfa-webauthn-change-key-nickname`, como el estado actual del flujo de MFA.

  ```jsx Example theme={null}
  import { useTransaction } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function TransactionInfo() {
    const transaction = useTransaction();
  }
  ```
</ParamField>

<ParamField body="useUntrustedData" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  Este hook gestiona los datos no confiables que se pasan a la pantalla, como los valores rellenados previamente a partir de parámetros de URL.

  ```jsx Example theme={null}
  import { useUntrustedData } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function PrefilledForm() {
    const untrustedData = useUntrustedData();
  }
  ```
</ParamField>

<ParamField body="useUser" type={<span>() =&gt; <a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/UserMembers">UserMembers</a></span>}>
  Este hook proporciona información del usuario activo, incluidos `username`, `email` y los métodos de autenticación disponibles.

  ```jsx Example theme={null}
  import { useUser } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';
  function UserProfile() {
    const user = useUser();
  }
  ```
</ParamField>

<ParamField body="useMfaWebAuthnChangeKeyNickname" type={<a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/MfaWebAuthnChangeKeyNicknameMembers">MfaWebAuthnChangeKeyNicknameMembers</a>}>
  Este hook devuelve todos los métodos y el contexto disponibles en la pantalla `mfa-webauthn-change-key-nickname`.
</ParamField>

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

<ParamField body="continueWithNewNickname" type="Promise<void>">
  Este método envía el nuevo alias de la clave de seguridad de WebAuthn inscrita.

  ```jsx Example theme={null}
  import { useMfaWebAuthnChangeKeyNickname } from '@auth0/auth0-acul-react/mfa-webauthn-change-key-nickname';

  function SaveNicknameForm() {
    const { continueWithNewNickname } = useMfaWebAuthnChangeKeyNickname();
    return (
      <button onClick={() => continueWithNewNickname({ nickname: 'My Security Key' })}>
        Guardar alias
      </button>
    );
  }
  ```

  **Parámetros del método**

  <Expandable title="Parámetros">
    <ParamField body="options">
      [MfaWebAuthnChangeKeyNicknameContinueOptions](/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/MfaWebAuthnChangeKeyNicknameContinueOptions).
    </ParamField>

    <ParamField body="nickname" type="string" required>
      El nuevo alias de la clave de seguridad de WebAuthn.
    </ParamField>
  </Expandable>
</ParamField>

<div id="commonutility-hooks">
  ## Hooks comunes y de utilidad
</div>

<ParamField body={<a href="/es/docs/libraries/acul/react-sdk/API-Reference/Hooks/useAuth0Themes">useAuth0Themes</a>} type="Hooks">
  Este hook obtiene las opciones del tema actual con la configuración plana del contexto de marca.
</ParamField>

<ParamField body={<a href="/es/docs/libraries/acul/react-sdk/API-Reference/Hooks/useChangeLanguage">useChangeLanguage</a>} type="Hooks">
  Este hook devuelve una función para cambiar el idioma que se muestra en la pantalla actual de ACUL.
</ParamField>

<ParamField body={<a href="/es/docs/libraries/acul/react-sdk/API-Reference/Hooks/useCurrentScreen">useCurrentScreen</a>} type="Hooks">
  Este hook obtiene el contexto y el estado de la pantalla actual.
</ParamField>

<ParamField body={<a href="/es/docs/libraries/acul/react-sdk/API-Reference/Hooks/useErrors">useErrors</a>} type="Hooks">
  Este hook lee y administra los errores del servidor, del cliente y del desarrollador en la pantalla.
</ParamField>
