> For the complete documentation index, see [llms.txt](https://fastbnb.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fastbnb.gitbook.io/project/sns.md).

# 로그인 Token 요청하기

.user\_id, email, first\_name, last\_name 요청 시 token 반환.

## Get server token

<mark style="color:green;">`POST`</mark> `https://backends.xyz/api/user/auth-token/`

Frontend에서는 http:localhost:3000에서 post 요청 하시면 됩니다. \
도메인 변경 시 알려주시면 추가하도록 하겠습니다.&#x20;

#### Request Body

| Name        | Type   | Description    |
| ----------- | ------ | -------------- |
| email       | string | .email address |
| last\_name  | string | .last\_name    |
| first\_name | string | first\_name    |
| user\_id    | string | unique user id |

{% tabs %}
{% tab title="200 Token successfully retrieved." %}

```javascript
{
    "token": "aecf4a8b1a3e4e5563fde9d63cd0b489cb80017a",
    "user": {
        "username": "testuser",
        "email": "non@non.com",
        "date_joined": "2018-11-29T17:24:50.556318+09:00",
        "img_profile": null,
        "id": 3,
        "last_login": null,
        "saved_room": []
    }
}
```

{% endtab %}
{% endtabs %}
