Server Auth
JSON Authentication with Passport and Basic HTTP
Setup
The first Step is to create a node server with a JSON api
package.json
$ npm install dependencies from the root folder.
Generate a self-signed ssl certificate and key and put them in a folder named config.
server.js
models/user.js
lib/authentication/passportBasic.js
routes/userRoutes.js
lib/authentication/jwtAuth.js
Last updated
Was this helpful?