Files
internship_node/day9/README.md
T
ryanwong bd137e6f09 day 9
2022-02-06 21:38:21 -05:00

499 B

day 8

Instructions

  • setup project

  • clone to your github

  • Create middleware for all api that checks if bearer token exist and its still valid.

  • Pass the user_id in payload to the api it uses

  • if api is /api/v1//something, make sure role = portal name

  • We made JwtService for you

  • Create middleware Maintenance.js which returns 503 on all api if config maintenance = true

  • Handle the error message return to be something human readable

  • Everything must be done by end of date