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

戻り値

IdentifierType[]有効な識別子を表す IdentifierType の配列。

サポートされている画面

  • 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 は次のようになります:
// ['email', 'username']