> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-actions-triggers-prototype.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ユニバーサルログインでのパスワードレス

> 本ドキュメントでは、ユニバーサルログインとパスワードレス接続に対するサポートを発表しています。

<Card title="始める前に">
  * パスワードレス接続を構成します。方法については、以下の記事をお読みください。

    * [メールでのパスワードレス認証](https://auth0.com/docs/authenticate/passwordless/authentication-methods/email-otp)
    * [メールマジックリンクでのパスワードレス認証](https://auth0.com/docs/authenticate/passwordless/authentication-methods/email-magic-link)
    * [SMSでのパスワードレス認証](https://auth0.com/docs/authenticate/passwordless/authentication-methods/sms-otp)
</Card>

ユニバーサルログインでは[パスワードレス接続](/docs/ja-jp/authenticate/passwordless)がサポートされています。これによって、ユーザーは電話番号やメールアドレスを入力してからワンタイムパスワード（OTP）を受け取り、認証を完了することができます。

## ユニバーサルログインのパスワードレスを有効にする

パスワードレス接続をサポートするようにユニバーサルログインを構成するには、サポートされるログインフローを使用するように認証プロファイルを設定し、認証中に接続を指定するようにアプリケーションを更新する必要があります。

### Identifier Firstを有効にする

<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-jp/glossary?term=auth0-dashboard" tip="Auth0 Dashboard: サービスを構成するためのAuth0の主製品。" cta="用語集の表示">Auth0 Dashboard</Tooltip>で、[［Authentication（認証）］>［Authentication Profile（認証プロファイル）］](https://manage.auth0.com/?/authentication-profiles)に移動します。

**［Identifier First］** または **［Identifier First + Biometrics］** を選択します。

### アプリケーションを更新する

アプリケーションに対して有効にした接続タイプに応じて、ログイン中にパスワードレス接続を指定するようにアプリケーションを更新しなければならない場合があります。

| データベース接続 | パスワードレス接続 | 指定する必要 | ユーザーエクスペリエンス                      |
| -------- | --------- | ------ | --------------------------------- |
| 有        | SMSとメール   | 有      | 指定されたパスワードレス接続がログイン中に表示されます。      |
| 無        | SMSとメール   | 無      | 最初に作成されたパスワードレス接続が表示されます。         |
| 無        | SMSまたはメール | 無      | パスワードレス接続が（有効なソーシャル接続とともに）表示されます。 |

ログイン中にパスワードレス接続を指定するには、`connection`パラメーターとその値（`sms`または`email`）を[Auth0 Authentication API Loginエンドポイント](https://auth0.com/docs/api/authentication#login)に渡す必要があります。

`https://mytenant.us.auth0.com/authorize?client_id={id}&``connection={sms|email}``&scope=…&response_type=code&response_mode=query&state=…&redirect_uri=http%3A%2F%2Flocalhost%3A3000&code_challenge=…`

いずれかのSDKを使用している場合は、初期化中にパスワードレス接続を指定することができます。例：

```js lines theme={null}
auth0 = await createAuth0Client({
     domain: config.domain,
     client_id: config.clientId,
     connection: "email"
  });

auth0 = await createAuth0Client({
     domain: config.domain,
     client_id: config.clientId,
     connection: "sms"
  });
```

### 接続をテストする

OTPを入力するよう求められると、以下のいずれかの画面が表示されます。

### サインアップ

<Frame>
  <img src="https://mintcdn.com/docs-dev-actions-triggers-prototype/dadTd1GKGvbSPiSP/docs/images/ja-jp/cdy7uua7fh8z/6ABY0ul7dceiGcdRH7glm6/d1ddfe6fc86e41654dc9c6c5a15c9cc7/Passwordless_-_SMS_Enroll_-_Japanese.png?fit=max&auto=format&n=dadTd1GKGvbSPiSP&q=85&s=495a4b7fdb93a60bd31120038d676926" alt="" width="482" height="663" data-path="docs/images/ja-jp/cdy7uua7fh8z/6ABY0ul7dceiGcdRH7glm6/d1ddfe6fc86e41654dc9c6c5a15c9cc7/Passwordless_-_SMS_Enroll_-_Japanese.png" />
</Frame>

### ログイン

<Frame>
  <img src="https://mintcdn.com/docs-dev-actions-triggers-prototype/dadTd1GKGvbSPiSP/docs/images/ja-jp/cdy7uua7fh8z/5xHAEaXgnS43Jpnju9FCzZ/13b37efee37a60d17f692593d47d24cb/Passwordless_Login_-_Japanese.png?fit=max&auto=format&n=dadTd1GKGvbSPiSP&q=85&s=b1d2dfcb4f5d9974f207f4c11ad3f661" alt="" width="482" height="655" data-path="docs/images/ja-jp/cdy7uua7fh8z/5xHAEaXgnS43Jpnju9FCzZ/13b37efee37a60d17f692593d47d24cb/Passwordless_Login_-_Japanese.png" />
</Frame>
