# 구글 OTP 검증

<mark style="color:blue;">`GET`</mark> `https://{dashboard-domain}/v1.0/db/me/otp/verify`

#### Query Parameters

| Name                                        | Type   | Description                          |
| ------------------------------------------- | ------ | ------------------------------------ |
| otp\_code<mark style="color:red;">\*</mark> | string | Authenticator 앱에서 발급 받은 6자리 OTP code |

#### Headers

| Name                                            | Type   | Description                 |
| ----------------------------------------------- | ------ | --------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {{web-access-token}} |

{% tabs %}
{% tab title="200: OK 성공" %}

```javascript
{
    "return": 0,
    "message": "success"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}

```
curl --location --request GET 'https://{dashboard-domain}/v1.0/db/me/otp/verify?otp_code=163078' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6ImRkYTExNTZiLTBlODUtNGQwMS04OTEzLTQwN2MxZWVkZTEzZSIsImF1X2lkIjoyNSwiZXhwIjoxNjQ2NDEwOTI0OTIyLCJpbm5vX3VpZCI6Ikprb1l1RnZFaEhIenVUYXBsNHlvN3M1SEx3Q08vOWVOSSs4c29icGJsRk1kdS8rNW9UTnNiSm91MHJpR1RnRUMiLCJsb2dpbl90eXBlIjo0fQ.8LT7xGi8KlUHBEvMBjAcry3lXz0jVg6UgdgP_6azJLY'
```

{% endtab %}

{% tab title="Response Value" %}

<table><thead><tr><th width="173.33333333333331">key</th><th>data type</th><th>desc.</th></tr></thead><tbody><tr><td></td><td></td><td></td></tr></tbody></table>

{% endtab %}

{% tab title="Result Code" %}

| return        | message           | desc.          |
| ------------- | ----------------- | -------------- |
| 0             | success           | 성공             |
| 20004         | Invalid jwt token | 유효하지 않은 토큰 에러  |
| 34006         | Otp Verify Error  | OTP Code 검증 에러 |
| {% endtab %}  |                   |                |
| {% endtabs %} |                   |                |
