@auth0/auth0-acul-react - v1.0.0
    Preparing search index...

    Function useSignupIdentifiers

    • Returns a list of enabled identifiers (email, phone, or username), each with its required status, based on the current screen's signup identifiers.

      Returns [] | Identifier[]

      An array of Identifier objects, where each contains a type (identifier type) and a required flag indicating whether it is mandatory for signup.

      • signup
      • signup-id
      import { useSignupIdentifiers } from '@auth0/auth0-acul-react/signup';

      const identifiers = useSignupIdentifiers();
      const emailIdentifier = identifiers.find(({ type }) => type === 'email');
      const phoneIdentifier = identifiers.find(({ type }) => type === 'phone');
      const usernameIdentifier = identifiers.find(({ type }) => type === 'username');

      const emailRequired = emailIdentifier?.required ?? false;
      const phoneRequired = phoneIdentifier?.required ?? false;
      const usernameRequired = usernameIdentifier?.required ?? false;

      // Example output:
      // [
      // { type: 'email', required: true },
      // { type: 'phone', required: false },
      // { type: 'username', required: true },
      // ]