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

# 検証

> 電話番号またはメールアドレスに送信されたパスワードレスコードを検証し、ユーザーを認証します。

<div id="endpoint">
  ## エンドポイント
</div>

`POST /passwordless/verify`

<Note>
  この機能は、2017年6月8日以降、新しいテナントではデフォルトで無効になっています。詳細については、[Application Grant の種類](/applications/concepts/application-grant-types)をご覧ください。
</Note>

検証コードを取得したら、このエンドポイントを使用して、ユーザーを電話番号またはメールアドレスと検証コードでログインさせます。これはアクティブ認証のため、ユーザーはアプリでコードを入力する必要があります。

<div id="remarks">
  ### 備考
</div>

* `profile` スコープ値は、エンドユーザーの標準のプロフィールクレーム (`name`、`family_name`、`given_name`、`middle_name`、`nickname`、`preferred_username`、`profile`、`picture`、`website`、`gender`、`birthdate`、`zoneinfo`、`locale`、`updated_at`) へのアクセスを要求します。
* `email` スコープ値は、`email` および `email_verified` クレームへのアクセスを要求します。
* auth0.js スクリプトのサンプルでは、ライブラリのバージョン 8 を使用しています。auth0.js バージョン 7 を使用している場合は、この[リファレンスガイド](https://auth0.com/docs/libraries/auth0js)を参照してください。

<div id="learn-more">
  ### 詳しくはこちら
</div>

* [パスワードレスのベストプラクティス](/connections/passwordless/best-practices)

<div id="body-parameters">
  ## ボディパラメーター
</div>

<ParamField body="grant_type" type="string" required>
  Grant type。`password` である必要があります。
</ParamField>

<ParamField body="client_id" type="string" required>
  アプリケーションの `client_id`。
</ParamField>

<ParamField body="connection" type="string" required>
  `sms` または `email` を使用します ([POST /passwordless/start](#get-code-or-link) と同じ値である必要があります) 。

  使用可能な値: `email`, `sms`
</ParamField>

<ParamField body="username" type="string" required>
  `connection=sms` の場合はユーザーの電話番号、`connection=email` の場合はユーザーのメールアドレスです。
</ParamField>

<ParamField body="password" type="string" required>
  ユーザーの検証コード。
</ParamField>

<ParamField body="scope" type="string">
  IDトークンを取得するには `openid` を使用します。IDトークンにユーザープロフィール情報を含めるには、`openid profile email` を使用します。
</ParamField>

<ParamField body="redirect_uri" type="string" required>
  アプリケーションの Allowed Callback URLs に登録されているコールバックURL。
</ParamField>

<div id="response-messages">
  ## レスポンスメッセージ
</div>

| Status | Description                  |
| ------ | ---------------------------- |
| 200    | ユーザーの認証に成功しました。              |
| 400    | 不正なリクエストです。パラメーターが無効です。      |
| 401    | 未認証です。認証情報が無効です。             |
| 403    | アクセスが禁止されています。クライアント認証が必要です。 |
| 500    | 内部サーバーエラーです。                 |
