Logout the currently authenticated user by invalidating their refresh token. Requires valid JWT access token in Authorization header.
GET
/api/v1/auth/logout
curl \
--request GET 'https://api.echoplain.social/api/v1/auth/logout'
Response examples (200)
{
"message": "Logged out successfully",
"success": true
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}
Response examples (401)
{
"error": "Unauthorized",
"message": "Unauthorized",
"statusCode": 401
}
Response examples (500)
{
"error": "Internal Server Error",
"message": "Internal server error",
"statusCode": 500
}