Login state not properly cleared after session timeout
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- authentication, frontend
Research direction
No files, tests, or entry points are named. Start by reproducing the timeout, then trace the frontend session and routing behavior when accessing datasets or collections. Done means an expired session clears the logged-in state, redirects to login, and a successful re-login returns to the dataset overview.
Written by the indexing model from the issue text.
Description
Summary
After a session times out, the frontend does not properly clear the login state. Instead, it still displays the user as logged in and does not forward to the login page initially. This can lead to some very confusing states in the FE, where it might be unclear for the user what the problem is.
Steps to Reproduce
Log into frontend and let the session expire, try to access datasets or other collections afterwards
Current Behaviour
See screenshots below
Expected Behaviour
FE should check for session timeout and redirect to the login page if necessary. After timeout, the user should not be displayed as logged in anymore
Extra Details
After session timeout, clicking on a dataset: Get a 404 instead of being forwarded to login page
Go back to datasets overview, no entries visible despite still showing "admin" logged in (no public dataset entries in this toy instance)
After trying to go to another collection from the right side menu (here published-data, others untested): 401 Unauthorized, forward to login page (but still showing "admin" as logged in!)
After logging in again: Success message, but still stuck on login screen (not forwarded to dataset overview entrypoint). Can click "Log in" repeatedly without being forwarded, could be very confusing for a user.
- Dominant language
- TypeScript
- Stars
- 29
- Forks
- 44
- Avg merge
- 20h 2m
- Merged PRs (30d)
- 20
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SciCatProject/frontend
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
SciCatProject/frontend#2477 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
SciCatProject/frontend#2458 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SciCatProject/frontend#2451 ·
-
Improvement
SciCatProject/frontend#2417 · 1 assignee ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
SciCatProject/frontend#2405 · 4 comments ·
All issues in SciCatProject/frontend
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·