Skip to main content
useLoginIdentifiers()
Returns a list of active identifier types (such as 'email', 'phone', or 'username') currently in use in the authentication flow or login process.

Returns

IdentifierType[]An array of IdentifierType representing active identifiers.

Supported Screens

  • login
  • login-id
  • reset-password-request
Example
import { useLoginIdentifiers } from '@auth0/auth0-acul-react/login';

const loginIdentifiers = useLoginIdentifiers();
const hasEmail = loginIdentifiers.includes('email');
const hasPhone = loginIdentifiers.includes('phone');
const hasUsername = loginIdentifiers.includes('username');

// loginIdentifiers could be:
// ['email', 'username']