DEV Community

Discussion on: What's the best way to create authentication for a single-user Node.js app?

Collapse
 
migueloop profile image
Miguel Ruiz

You can follow for example this tutorial:

medium.com/@patrykcieszkowski/jwt-...

Then in verifyJWTToken function, you can check your settings or config file and check for a global counter set in your app.

I hope I understood well your situation and helped.