> For the complete documentation index, see [llms.txt](https://baeminchan-project.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://baeminchan-project.gitbook.io/project/undefined/undefined-3.md).

# 소셜로그인

## Social login

<mark style="color:green;">`POST`</mark> `https://api.elegantsiblings.xyz/members/social-login/`

인증된 후 정보를 받으므로 username으로 오면 무조건 사용자(user)가 생김

#### Request Body

| Name         | Type   | Description                      |
| ------------ | ------ | -------------------------------- |
| username     | string | userID의 이름을 username으로 변경해서 보내야함 |
| first\_name  | string |                                  |
| last\_name   | string |                                  |
| img\_profile | string |                                  |

{% tabs %}
{% tab title="200 user정보 token" %}

```javascript
{
    "user": {
        "pk": 4,
        "username": "123456789",
        "first_name": "",
        "last_name": "",
        "email": "",
        "img_profile": null
    },
    "token": "8b32f0a73b19242b35da324b2b53d5b91f656652"
}
```

{% endtab %}

{% tab title="400 username으로 보내지 않은 경" %}

```javascript
{
    "username": "This field is required."
}
```

{% endtab %}
{% endtabs %}
