Skip to content

fix(auth): handle expired sessions in apiFetch - #424

Merged
dark-sarge merged 2 commits into
arflexx:mainfrom
Zuliyat:fix/issue-291
Oct 1, 2026
Merged

dark-sarge merged 2 commits into
arflexx:mainfrom
Zuliyat:fix/issue-291

Conversation

@Zuliyat

@Zuliyat Zuliyat commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Closes #291

Handle expired API sessions consistently by clearing the client token, notifying the toast provider with the requested session-expired message, and redirecting to signup while preserving the current URL in returnTo. Added regression coverage for the 401 flow and redirect target.

@Zuliyat
Zuliyat requested a review from dark-sarge as a code owner September 29, 2026 23:24
@drips-wave

drips-wave Bot commented Sep 29, 2026

Copy link
Copy Markdown

@Zuliyat Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Zuliyat

Zuliyat commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

@arflexx Implementation for issue #291 is pushed on Zuliyat:fix/issue-291. The PR body includes the explicit Closes #291 keyword. It clears expired sessions, shows the requested session-expired message, preserves returnTo, and includes focused regression coverage.

@dark-sarge
dark-sarge merged commit 472ab1d into arflexx:main Oct 1, 2026
3 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[frontend] - apiFetch does not automatically refresh an expired JWT; users are silently logged out mid-session

2 participants