로그인 & 로그아웃

일반 유저 로그인 요청

POST /api/users/login

Headers

Name
Type
Description

Content-type*

String

application/json

Request Body

Name
Type
Description

email*

String

password*

String

{
    "_id": "61a43a308f72e0ed3a31d",
    "name": "알로",
    "isAdmin": false,
    "token": "eyJhbG6Ik.eyJpZCI62TfEd9zdeQEgSjQOWU"
}

로그아웃 - 로그아웃 시간 저장

GET /api/users/logout

Headers

Name
Type
Description

authorization*

Bearer Token

{
    "message": "로그아웃 시간이 저장되었습니다"
}

OAuth Login

GET api/users/:corp

Path Parameters

Name
Type
Description

corp*

String

kakao | naver | google

Query Parameters

Name
Type
Description

code*

String

authorization code

{
    "_id": "61a43a308f72e06afed331d",
    "name": "아레나",
    "isAdmin": false,
    "token": "eyJhbG6Ik.eyJpZCI62Tf0iCiW_KigAm_g2n6DEd9zdeQEgSjQOWU"
}

Last updated