The essential boilerplate to authenticate users on your React-Native app
Alexis Mangin
22516

I find it odd that you hardcode the refresh interval in your client code. Shouldn’t the refresh call happen as a result of a 401 status code? I realize that this would complicate things quite a bit, having to replay the previously failed action after the refresh, but it seems like the only proper solution. Only then your app will keep working when the server chooses to lower it’s expiration time. What do you think? Any pointers on how to tackle this maybe?

Show your support

Clapping shows how much you appreciated Thijs Koerselman’s story.