Skip to content

etiks3/passport-jwt-auth

Repository files navigation

PassportJS + JSON Web Tokens + NodeJS + MongoDB

This is a working example of an authentication using PassportJS and Json Web Tokens.

Launching the project

  • You need to install and run MongoDB.

Create a passport_local_jwt_mongoose database and a users collection.

Inside the users collection, create a user : {"username" : "jer" , "password" : "toto"}.

  • In a terminal : run nodemon to launch the NodeJS server. Then open Chrome on localhost:8000.

About

A passport jwt authentification project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published