DEV Community

loading...

Handle common login for API and static page in node js

Dhruvang Gajjar
Full Stack Developer | JavaScript | Hubspot | APIs | React | Node | Data | Mongo
・1 min read

I'm working on MERN stack application. There are two types of endpoints in my applications. One for API and another for static routes (using handlebars in NodeJS). I have used the basic JWT token to secure the API endpoints which would be accessible by React App. But JWT is not…

Discussion (0)