Skip to content

User is logged out when app launched on offline #103

Closed
@sasaar

Description

@sasaar

Describe the bug

If user launches the app in offline mode and access token is expired, user is logged out (even if refresh token is still valid). It obvious that access token cannot be refreshed as phone is offline, but could there be some other way to handle. As refresh token is still valid, access token could be refreshed when phone appears again online.

This is problematic when access token validity period is short.

Steps To Reproduce

  1. Log into the app
  2. Set phone offline and close (kill) the app
  3. Wait until access token validity time expires (e.g. 1h)
  4. Launch app again

Actual behaviour:
User sees login screen. User can continue using the app after wifi/data enabled and user has logged again into the app.

Expected behaviour:
User lands to the app as logged in. No network request can be done as access token not valid and phone in offline. As refresh token is still valid, after user enables wifi/data (phone online again), access token is refreshed and user can continue using the app normally (no need to login).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions