Logout

입력받은 Token object를 삭제하여 사용자를 로그아웃 시킵니다.

URL
/api/member/logout/

Method
POST

Header

Key Value Require
Authorization Token (해당 유저가 로그인시 받았던 token) True

ex) Token a293d555881e186630a5eb99f6053c917e57744b

Success Response

HTTP Status code
200

Content

"성공적으로 logout 되었습니다"

Error response

Required error

HTTP Status code
400

Content

# 로그인 되어 있지 않거나 로그아웃 되었을 때 
"제공된 토큰이 없습니다"

Method Not Allowed error

HTTP Status code
405

Content

# POST 요청 외의 요청 보냈을 때 
{
"detail": "메소드(Method) \"GET\"는 허용되지 않습니다."
}
{
"detail": "메소드(Method) \"PUT\"는 허용되지 않습니다."
}
{
"detail": "메소드(Method) \"PATCH\"는 허용되지 않습니다."
}

results matching ""

    No results matching ""