app-generator / api-server-laravel

Laravel API Server - Open-Source API Server | AppSeed
https://appseed.us/boilerplate-code/laravel-boilerplate
Other
10 stars 1 forks source link

Tests / Logout - Expected I/O #4

Closed app-generator closed 3 years ago

app-generator commented 3 years ago

API URL : http://localhost:5000/api/users/logout

Request Headers

Request Body

{
    "token": "JWT_TOKEN_HERE"
}

Response For success

{
    "success": true,
    "msg": "Token revoked"
}

Response for unknown token

{
    "success": false,
    "msg": "User is not logged on"
}