Automatic Session Refresh not Working #452
-
Since version 2.0.4 I think the automatic refresh of the session is not working properly on android. After login, it seems to work but then after a few hours the app crashes on start up with the following exception:
Is there anything that I have to change in newer versions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@MatthiasKroiss Hmm, there weren't any changes to auto refresh for the last 10 versions or something like that. I assume you didn't disable auto refresh in the auth config? And do you never see a log like "Session expired. Refreshing session..."? The session always gets refreshed 20% before the expiration, so it shouldn't be too late |
Beta Was this translation helpful? Give feedback.
Okay, I'm integrating change which sets the session status back to
LoadingFromStorage
whenever the app goes into background. So you can collect thesessionStatus
flow and change your Ui depending on the value (and it will never be Authenticated if the app just opened).Example: