2.1.3
Changes
Auth
- [Android]: If
enableLifecycleCallbacks
is set to true and the app goes to background, thesessionStatus
value 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 theLoadingFromStorage
status, e.g. by showing a loading screen.
On the client side, it will be onLoadingFromStorage
and then back toAuthenticated
once the session is definitely valid. - Add
oldStatus
property 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