Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renew session when it expires during activity in the dApp #881

Open
nkuba opened this issue Nov 20, 2024 · 1 comment
Open

Renew session when it expires during activity in the dApp #881

nkuba opened this issue Nov 20, 2024 · 1 comment
Labels
🐛 Bug Something isn't working 🎨 dApp dApp

Comments

@nkuba
Copy link
Member

nkuba commented Nov 20, 2024

There is one operation requiring an active session: points claiming.
The user establishes a session during login, kept for a week.
The existing session is used every time the user returns to the dApp during the week. Users who open the dApp after the session expires will be asked to sign in again to establish a new session.

The problematic scenario is when the session expires when the user is actively using the dApp. Let's assume the scenario:

  1. User logins to the dApp with a valid session.
  2. Session expires while the user is using the dApp.
  3. The user claims the points.
    In this case, the claim request will fail as the backend rejects.
    As a workaround, the user has to refresh the dApp and log in to establish a new session.

We must fix this problem by requesting the user to establish a new session.

Copy link

linear bot commented Nov 20, 2024

@nkuba nkuba added this to the Post Ledger Live Launch milestone Nov 20, 2024
@nkuba nkuba added 🎨 dApp dApp 🐛 Bug Something isn't working labels Dec 16, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working 🎨 dApp dApp
Projects
None yet
Development

No branches or pull requests

1 participant