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

YALA-BUG: Token Expires Unexpectedly Resulting In Data Loss #2

Open
kerryboyko opened this issue Aug 8, 2023 · 0 comments
Open

YALA-BUG: Token Expires Unexpectedly Resulting In Data Loss #2

kerryboyko opened this issue Aug 8, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kerryboyko
Copy link
Owner

TYPE: BUG
PRIORITY: 2 (Blocks release, but not development)

Title: Token Expires Unexpectedly Resulting in Data Loss

Description: Oftentimes, the user will be considered logged in on the client even after their JWT token has expired. If they've just written a long post or comment and try to submit, they'll be redirected back to the login screen to re-log in, losing all of the data they just used.

This may be because the original coder (Kerry) didn't set up refreshing correctly, or that there needs to be some alternative method for refreshing tokens.

Steps to reproduce:

  • Create a user
  • Login
  • Create a new community, post, or comment, but do not submit it.
  • Wait an hour for the token to expire
  • Submit.

Expected results: Either the token automatically refreshes in the background without the user having to do anything, or five minutes before token expiration, a notice is given to the user as a dialog and a timer. If they click yes, refresh the token. If they click no, or the timer runs out, log them out, destroying the session on the client, and send them to the home page.

Actual results: The user does not realise the JWT is invalid until after they try to do something and are booted to the Login page.

@kerryboyko kerryboyko added bug Something isn't working help wanted Extra attention is needed labels Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant