2.1.3
Changes
Auth
- [Android]: If
enableLifecycleCallbacksis set to true and the app goes to background, thesessionStatusvalue will get set toLoadingFromState(before it wasn't changed at all). This fixes a problem that caused other plugins to use a potentially expired session after the app goes back into foreground because the session wasn't refreshed yet.
Note: You obviously have to handle theLoadingFromStoragestatus, e.g. by showing a loading screen.
On the client side, it will be onLoadingFromStorageand then back toAuthenticatedonce the session is definitely valid. - Add
oldStatusproperty toSessionStatus.Authenticated. This can be used to check if a new status emitted is just a refresh (so the oldStatus will just beAuthenticated), or an actual login (e.g. oldStatus will beNotAuthenticated)
Full Changelog: 2.1.2...2.1.3