We have two servers:
first one is server.js, which handles all of our creation, deletion and refreshen of tokens and another server - authServer.js servers to handle our specific usecase of getting, saving post, all of our different API related tasks but not authentication.
-How to use JWT
-Creating Node.js authentication middleware
-Using refresh tokens with JWT
-Authentication users with JWT
-Invalidating refresh tokens to log users out
-Using MongoDB & Mongoose