> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/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/ja-jp/authenticate/passwordless)がサポートされています。これによって、ユーザーは電話番号やメールアドレスを入力してからワンタイムパスワード（OTP）を受け取り、認証を完了することができます。

<div id="enable-passwordless-for-universal-login">
  ## ユニバーサルログインのパスワードレスを有効にする
</div>

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

<div id="enable-identifier-first">
  ### Identifier Firstを有効にする
</div>

<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-JP/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］** を選択します。

<div id="update-your-application">
  ### アプリケーションを更新する
</div>

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

<table class="table">
  <thead>
    <tr>
      <th><b>データベース接続</b></th>
      <th><b>パスワードレス接続</b></th>
      <th><b>指定する必要</b></th>
      <th><b>ユーザーエクスペリエンス</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>有</td>
      <td>SMSとメール</td>
      <td>有</td>
      <td>指定されたパスワードレス接続がログイン中に表示されます。</td>
    </tr>

    <tr>
      <td>無</td>
      <td>SMSとメール</td>
      <td>無</td>
      <td>最初に作成されたパスワードレス接続が表示されます。</td>
    </tr>

    <tr>
      <td>無</td>
      <td>SMSまたはメール</td>
      <td>無</td>
      <td>パスワードレス接続が（有効なソーシャル接続とともに）表示されます。</td>
    </tr>
  </tbody>
</table>

ログイン中にパスワードレス接続を指定するには、`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"
  });
```

<div id="test-the-connection">
  ### 接続をテストする
</div>

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

<div id="signup">
  ### サインアップ
</div>

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/UCtxRPLKKGiAgiWv/docs/images/ja-jp/cdy7uua7fh8z/6ABY0ul7dceiGcdRH7glm6/d1ddfe6fc86e41654dc9c6c5a15c9cc7/Passwordless_-_SMS_Enroll_-_Japanese.png?fit=max&auto=format&n=UCtxRPLKKGiAgiWv&q=85&s=0b7b7940ba7b4446dc6c3708a062dbc5" alt="" width="482" height="663" data-path="docs/images/ja-jp/cdy7uua7fh8z/6ABY0ul7dceiGcdRH7glm6/d1ddfe6fc86e41654dc9c6c5a15c9cc7/Passwordless_-_SMS_Enroll_-_Japanese.png" />
</Frame>

<div id="login">
  ### ログイン
</div>

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