Logout

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

URL

/auth/logout/

Method

POST

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

Success Response

HTTP Status code

200

Content

"Successfully logged out"

Error Response

HTTP Status code

400

Content

# 로그인 되어 있지 않거나 토큰이 들어오지 않았을 때
{
    "detail": "You are not signed in or have no tokens provided"
}

Method Not Allowed error

HTTP Status code

405

Content

# POST 외의 요청을 보냈을 때
{
    "detail": "Method \"GET\" not allowed."
}
{
    "detail": "Method \"PUT\" not allowed."
}
{
    "detail": "Method \"PATCH\" not allowed."
}

results matching ""

    No results matching ""