cs481-ekh / s24-illiterate-librarians

MIT License
1 stars 0 forks source link

Create middleware for project to use and check JWT #96

Closed Connor-Thorpe01 closed 5 months ago

Connor-Thorpe01 commented 5 months ago

references #95

Connor-Thorpe01 commented 5 months ago

[t:60] added auth package and added JWT file with functions that can generate and validate tokens. Used those to create a middleware for Gin that checks Authorization tokens for all the endpoints before handing it off to the handlers