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

# 検証

> note

`POST /passwordless/verify`

note
2017年6月8日以降、新規テナントではこの機能がデフォルトで無効になりました。詳細については、「[アプリケーションの付与タイプ](/docs/ja-jp/api/authentication/applications/concepts/application-grant-types)」を参照してください。

確認コードを入手したら、このエンドポイントを使用して、ユーザーを電話番号/メールアドレスと確認コードでログインします。これはアクティブ認証のため、ユーザーはアプリでコードを入力しなければなりません。

### 備考

* `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/ja-jp/libraries/auth0js)を参照してください

### 詳しい情報

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

## Parameters

<ParamField body="grant_type" type="string">
  付与タイプです。`password`でなければなりません。
</ParamField>

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

<ParamField body="connection" type="string">
  `sms`または`email`（[POST /passwordless/start](#get-code-or-link)と一致）を使用します。
</ParamField>

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

<ParamField body="password" type="string">
  ユーザーの確認コードです。
</ParamField>

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

<ParamField body="redirect_uri" type="string">
  アプリケーションの許可されているCallback URLで登録されたCallback URLです。
</ParamField>

## Response

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