Skip to content

2.1.3

Compare
Choose a tag to compare
@jan-tennert jan-tennert released this 06 Feb 19:12
· 895 commits to master since this release
ef117de

Changes

Auth

  • [Android]: If enableLifecycleCallbacks is set to true and the app goes to background, the sessionStatus value will get set to LoadingFromState (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 the LoadingFromStorage status, e.g. by showing a loading screen.
    On the client side, it will be on LoadingFromStorage and then back to Authenticated once the session is definitely valid.
  • Add oldStatus property to SessionStatus.Authenticated. This can be used to check if a new status emitted is just a refresh (so the oldStatus will just be Authenticated), or an actual login (e.g. oldStatus will be NotAuthenticated)

Full Changelog: 2.1.2...2.1.3