In this video we have connected our node.js express server to the mongoDB database for our role based authentication application.
Github repository: - https://github.com/nandymandy1/role_b...
And we have also created User's schema to register and login with JWT.
We have created role based authentication with JWT and passport for admins and users making the application secure for the users and admins.
Packages used:-
Passport
Express
Node.js
Mongoose
MongoDB
Passport
Jsonwebtoken