exlibris-fed / exlibris

MIT License
4 stars 0 forks source link

Refactor JWT; add middleware #56

Closed Sigafoos closed 3 years ago

Sigafoos commented 4 years ago

This changes the JWT creation/validation to use a server-wide secret token instead of the users' private key. This allows the server to validate a request as being on behalf of a user without needing a database call.

It also adds three middleware functions:

Closes #1. Contains the backend portion of #34.