An array of Identifier objects, where each contains a type (identifier type)
and a required flag indicating whether it is mandatory for signup.
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 },
// ]
Returns a list of enabled identifiers (email, phone, or username), each with its
requiredstatus, based on the current screen's signup identifiers.