Authentication in Nodejs using Passport.js


Hello once again, In this article I would be teaching you authentication in nodejs using express and passport.js I know working with passport.js is a little bit tricky and confusing, but trust me I’ll make it really simple. I would highly recommend you to code along with me to better understand the flow of the code. Note: Before we begin I would like you to understand the...

Authentication in Nodejs using JSON web tokens (JWT)


Hey there, In this article, we would be learning how to implement authentication in nodejs using express and JWT aka JSON web tokens What are JSON web tokens? JSON web tokens or JWT is a simple long string that contains some data in an encoded way. Sounds confusing? here is an example A Sample JWT String may look like: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Most common tags