/bearer-auth

Primary LanguageJavaScriptMIT LicenseMIT

Lab 7 - Bearer Auth

Deployment Test

Author: Chris Gantt


Setup

.env requirements

  • PORT - Port Number
  • MONGODB_URI - mongodb://localhost:27017/<dbname>
  • SECRET - <secretkey of your choice>
  • JWT_EXPIRATION - 15min

Running the app

npm run start

Endpoints: /signin /signup /users /secret


Tests

Unit Tests: npm run test