Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Add Logout Route 🚀 #2

Closed
yezz123 opened this issue Aug 1, 2021 · 0 comments
Closed

Feature : Add Logout Route 🚀 #2

yezz123 opened this issue Aug 1, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yezz123
Copy link
Owner

yezz123 commented Aug 1, 2021

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

Request Headers

  • Content-Type: application/json
  • authorization: JWT_TOKEN_HERE

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"
}
@yezz123 yezz123 added enhancement New feature or request help wanted Extra attention is needed labels Aug 1, 2021
@yezz123 yezz123 self-assigned this Aug 1, 2021
yezz123 added a commit that referenced this issue Aug 1, 2021
@yezz123 yezz123 pinned this issue Aug 1, 2021
@yezz123 yezz123 closed this as completed Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant