cph-cachet / carp_studies_app

The CARP Study App
MIT License
6 stars 0 forks source link

Study app will redirect to Login page after the app has been inactive for some time #303

Closed SlimShadyIAm closed 1 month ago

SlimShadyIAm commented 3 months ago

The app will still be authenticated, since the auth token lasts up to 30 days. However, leaving it for a few hours (i.e 12 hours or so?) and opening the app again shows the Login page.

The problem is probably here: https://github.com/cph-cachet/carp_studies_app/blob/0bdcc6a8de4d0d283720aa77280c71f0a76db116/lib/carp_study_app.dart#L50-L64

It would seem that isAuthenticated is false, possibly because the OIDC Manager hasn't had time to properly initialize.