Open elimelt opened 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.
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