Skip to content

[Bug] - session has expired issue #382

Closed

Description

@Nodirbek75

Issue:
When a user logs out and logs back in without closing and reopening the app, they sometimes see the alert message:

Your session has expired. Please log in again.

Possible Causes:

  • The old session token might still be cached and interfering with the new session.

  • The authentication state isn't being fully reset on logout.

  • The app might still be using an expired token for some API requests after re-login.

Potential Fixes:

  1. Ensure all authentication-related data (session tokens, user info) is cleared on logout.

  2. After login, confirm that the app uses the new authentication token for all requests.

  3. Add a check to fetch a fresh token upon login and validate it before making requests.

  4. If using a persistent session store (e.g., AsyncStorage), make sure it's properly updated upon re-login.

Activity

  1. added
    bug
    on Apr 3, 2025
  2. added theissue type on Apr 3, 2025
  3. self-assigned this
    on Apr 3, 2025
  4. linked a pull request that will close this issueFix logout/delete issues #405on May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Mediumbug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions