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

# Auth

## 로그인

<mark style="color:yellow;">`POST`</mark> `http://localhost:8000/api/auth/sign-in`

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

```json
{
  "email": "test1@test.com",
  "password": "password"
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

## 로그아웃

<mark style="color:red;">`DELETE`</mark> `http://localhost:8000/api/auth/sign-out`

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Cookies**

| Name          | Value            |
| ------------- | ---------------- |
| Authorization | `Bearer <token>` |

**Response**

{% tabs %}
{% tab title="200" %}

```json
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
