This is a demonstration of how to implement JWT authentication in a REST API.
To run the development server, do the following:
-
Clone the repo
-
Run
npm install
oryarn
-
Run
npm run dev
oryarn dev
-
After a few seconds, the server will be accesible at http://localhost:5000
The sample users are hard-coded and can be found inside the /fixtures/Users.js
file.
/public
just returns some dummy datea from/fixtures/PublicInfo.js
/users
returns all the user emails that are hard-coded in/fixtures/Users.js
.