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

BUG: Expired token is not removed from Local Storage #408

Open
alien513 opened this issue Sep 24, 2024 · 3 comments
Open

BUG: Expired token is not removed from Local Storage #408

alien513 opened this issue Sep 24, 2024 · 3 comments
Assignees
Labels
BUG Something isn't working

Comments

@alien513
Copy link
Collaborator

alien513 commented Sep 24, 2024

Describe your issue

When the user opens the site with expired token, they get an error message. To avoid this, expired tokens should be removed from Local Storage.

Steps to reproduce

Pre-condition: There should be an expired token on the machine. The one used in testing: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJlZmRhZWViYS02YWU3LTQyYjMtYjUzMS02OWQ0Mjc0NjM1MTMiLCJleHAiOjE3MjY4MzgyNTZ9.n5ueEotSrbSVCpap964B3ljYzY2ChsO8KkRHzopsXO8.

  1. Open the page http://bsa-2024-outreachvids-dev.eu-north-1.elasticbeanstalk.com/sign-in.
    
  2. Observe the error message in the upper right corner.
    

What was the actual result?

The user gets the error message:

Image

What was the expected result?

When the user tries to access the site with expired token, they should be redirected to Sign-In page with no error messages.

Put here any screenshots or videos (optional)

No response

What OS are you seeing the problem on?

Windows 11

What browsers are you seeing the problem on?

Firefox 130.0 (64x)
Chrome 128.0.6613.113 (x64)

Severity

Minor (S4)

@alien513 alien513 added the BUG Something isn't working label Sep 24, 2024
@alien513 alien513 self-assigned this Sep 24, 2024
@DaniellaZambrano
Copy link
Collaborator

For me on Firefox doesn't occur the problem, can we verify the version? Mine is Firefox Ubuntu v130.0.

Here screenshots of the response: left Firefox and right Chrome

Image

@alien513
Copy link
Collaborator Author

alien513 commented Sep 24, 2024

@DaniellaZambrano , did you use the expired token? I use Firefox v.130.0 as well.

@alien513
Copy link
Collaborator Author

This is what I get in Firefox (the same):

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants