mycoralhealth / mycoral-patient

Mobile app for patients to interact with Coral Health blockchain
17 stars 7 forks source link

Any corald fetch that results in HTTP 401 should cause a logout #53

Closed lukecyca closed 6 years ago

lukecyca commented 6 years ago

Right now if the app stays open for a long time, and the accessToken becomes invalid, subsequent requests to corald will fail with HTTP status 401. We should catch those, consider the user logged out, and send them back to the login screen.