NoxVR Documentation
Authentication

User logout

Log out the current user and invalidate their session. Clears the session cookie.

GET
/auth/logout
AuthorizationBearer <token>

Bearer token authentication for user sessions

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://nox.hactazia.fr/api/auth/logout"
{
  "data": {
    "success": true
  },
  "request": "/api/",
  "time": 1750945093437
}
{
  "error": {
    "message": "You are not logged in.",
    "code": 7,
    "status": 401
  },
  "data": null
}
{
  "error": {
    "message": "Session not found.",
    "code": 4,
    "status": 404
  }
}