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.
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.