hcp-uw / syntext

website for practicing your typing
5 stars 0 forks source link

Refresh token authentication #71

Closed elimelt closed 1 year ago

elimelt commented 1 year ago

Implemented refresh tokens so that our access tokens can have a short expiration without logging the user out. Also removed all of the token authentication for secured endpoints into handleAuth middleware to clean up the code and seperate authentication logic from user/game logic.