# Web Token 검증

<mark style="color:blue;">`GET`</mark> `https://{auth-domain}/v1.0/auth/token/verify`

#### 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",
    "value": {
        "login_type": 4,
        "uuid": "969fb180-5226-4f77-802f-2a9d915964bd",
        "inno_uid": "JkoYuFvEhHHzuTapl4yo7s5HLwCO/9eNI+8sobpblFMdu/+5oTNsbJou0riGTgEC",
        "au_id": 5521,
        "social_type": 1,
        "zklogin": {
            "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6.......JTEhZMLsg",
            "ephemeral_publickey": "AOlMG1EuX/rYa7MPDC+YP2/USB5olfMZbd08whb8QEQW",
            "salt": "74618950994268702983342581215713993381",
            "epoch": 313,
            "randomness": "67617438664689110855700478339690217321",
            "private_key": "0x3232323232",
        }
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% 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>login_type</td><td>int</td><td>로그인 type (WebLogin = 4)</td></tr><tr><td>uuid</td><td>string</td><td>access token uuid</td></tr><tr><td>inno_uid</td><td>string</td><td>inno uid</td></tr><tr><td>au_id</td><td>int64</td><td>au id</td></tr><tr><td>zklogin</td><td>object</td><td></td></tr><tr><td>id_token</td><td>string</td><td>소셜 id 토큰</td></tr><tr><td>salt</td><td>string</td><td>Zklogin에 사용될 salt 정보</td></tr><tr><td>ephemeral_publickey</td><td>string</td><td>Zklogin 에 사용될 정보</td></tr><tr><td>epoch</td><td>int64</td><td>Zklogin 에 사용될 정보</td></tr><tr><td>randomness</td><td>string</td><td>Zklogin 에 사용될 정보</td></tr><tr><td>private_key</td><td>string</td><td>Zklogin 에 사용될 정보</td></tr></tbody></table>
{% endtab %}

{% tab title="Example Curl" %}

```
curl --location --request GET 'https://{auth-domain}/v1.0/auth/token/verify' \
--header 'Authorization: Bearer eyJhbGciOi...'
```

{% endtab %}

{% tab title="Result Code" %}

| return | message           | desc.      |
| ------ | ----------------- | ---------- |
| 0      | success           | 성공         |
| 20000  | Invalid jwt token | 유효하지 않은 토큰 |
| 20001  | Expired jwt token | 만료된 토큰     |

{% endtab %}
{% endtabs %}
