question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logout does not work!

See original GitHub issue

When I try to logout, it will show a SUCCESS message for logout.

{ “data”: “Log out successful”, “success”: true, “timestamp”: “2020-07-06T07:55:10.948Z” }

However still the old token is usable and I can access to data via /user/me with the old token!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mjzacommented, Jul 7, 2020

Dear @isopropylcyanide, I tested the app. It works perfect. Thanks.

1reaction
isopropylcyanidecommented, Jul 7, 2020
  • Logout is by design, achieved here through a stateless mechanism. When you carry no state, there are always trade offs. Hence, if you lose or compromise your token (using it even after a server logout), all is lost. You can read about what happens when you lose a token here

  • I’m sure the invalidation of a JWT token would be a solved problem (through external means only). You can look around for implementations online. Although I think I can provide a trivial implementation here. Will take some time out today and try to code it up.

  • Thank you for your comment on the codebase being clean.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Log out doesn't work and automatically sign in
Hello guys… I am having an issue with the logout part of the app… I am using Google App with Auth0 lock, the...
Read more >
Logout does not seem to be working correctly - Microsoft Q&A
In IIS served application, when I hit Logout it logs out of the application. When I select Login, it automatically logs me into...
Read more >
Logout is not working properly · Issue #2422 - GitHub
We won't send you to the logout redirect URI if the logout redirect URI is not registered. That's a dangerous open redirector avenue....
Read more >
Everything is fine but logout doesn't work - (Cannot POST ...
It looks like you are making a POST request, but the route is configured for DELETE. You can either update the form HTML...
Read more >
Users cannot Logout of My Account/Dashboard not working
Users cannot Logout of My Account/Dashboard not working. Resolved Wils1234 ... However, users can log out by clicking on “Hello User (not User?)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found