cs481-ekh / s24-illiterate-librarians

MIT License
1 stars 0 forks source link

Added JWT #98

Closed Connor-Thorpe01 closed 7 months ago

Connor-Thorpe01 commented 7 months ago

Added JWT token generation and validation. Created a middleware that checks all the requests to the backend for a valid JWT. If the JWT is valid it allows it to go to the specified handler if not it returns 401 to the request. Also, added tests for token validation and generation.