How can we logout a user forcefully from the server side? When using the JWT token.

  1. Using the middleware
  2. Maintaining the list of the blocked tokens.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sahil Nenwani

Sahil Nenwani

I am working as a Software engineer at Koderlabs. I love create scalable and secure projects.