fusion
fusion copied to clipboard
Regenerate Auth Token when requests fail because of expired token
trafficstars
When the server reject's a request because it is invalid, we need to regenerate.
To do this:
- [ ] Update the token validation api to return a code when auth token is expired/invalid
- [ ] On the mobile client, when requests fail because of auth we need to go through the flow to generate
- [ ] ideally we want to make sure we're using a single wrapper for api requests so the code isn't nasty
Interested! Let's sync on this
@oreHGA could I get assigned to this. Thanks
Great to hear! Couple things to look through:
-
How we generate jwt tokens, we want to include the refreshToken
-
To do this we could simply include the expiry of the token into the jwt and have that be what handles it
Update we authflow to use this