メインコンテンツへスキップ
useLoginIdentifiers()
現在の認証フローまたはログイン処理で使用されている、有効な識別子タイプ('email''phone''username' など)の一覧を返します。

Returns

IdentifierType[]有効な識別子タイプを表す IdentifierType の配列を返します。

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']