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

# 로그인

POST /api/login

```
회원가입 이메일 인증 완료 회원 : "verified": true, 
```

### Status Code

```
200: 로그인 성공
401: email, password 불일치
500: 서버 에러
```

### Request Body

```json
{
    "username" : String, // 이메일
    "password" : String
}
```

### Response Header

```json
{
    "Authorization" : String,
    "RefreshToken" : String
}
```

### Response Body

```json
{
    "memberId": 1,
    "email": "email@gmail.com",
    "name": "이름",
    "nickname": "닉네임",
    "phone": "010-0000-0000",
    "oauth": false,
    "introduction": null,
    "link": null,
    "profileImageUrl": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/754.jpg",
    "followerCount": 0,
    "followingCount": 0,
    "followed": false,
    "myPage": false,
    "verified": true,
    "createdAt": "2023-05-22T02:22:26.7933717",
    "modifiedAt": "2023-05-22T02:22:26.7933717"
}
```

```json
{
    "status": 401,
    "message": "이메일 또는 비밀번호가 맞지 않습니다. 다시 확인 해주세요."
}
```
