hcp-uw / syntext

website for practicing your typing
5 stars 0 forks source link

Refresh Token Authentication #70

Open elimelt opened 1 year ago

elimelt commented 1 year ago

We need to implement client-side error handling in all of our secured endpoints to deal with token expiration and refreshing.

The basic flow we will use is as follows:

Client sends a request to a sensitive endpoint

elimelt commented 1 year ago

Working on branch refresh-token

So far, I've implemented a refresh endpoint that verifies the user's refresh token, as well as if they have their most recent access token.

All that's left to do on this front is to implement the functionality for requesting a new token on the client side.