Sign out the current user

POST /api/authentication/signout

Signs out the current user by clearing the JWT cookie. This effectively ends the user's session.

Responses

  • 200 application/json

    User successfully signed out

    Hide headers attribute Show headers attribute
    • Set-Cookie string
    Hide response attribute Show response attribute object
    • message string
  • 500 text/plain

    Internal server error

POST /api/authentication/signout
curl \
 --request POST 'http://localhost:xxxx/api/authentication/signout'
Response examples (200)
# Headers
Set-Cookie: jwt=; Max-Age=1; Path=/; HttpOnly; Secure; SameSite=None

# Payload
{
  "message": "注销成功"
}
Response examples (500)
服务器内部错误