Skip to content

Fix and stabilize authentication lifecycle and logout modal behavior #86exgqfpu#33

Merged
navidshad merged 2 commits into
mainfrom
CU-86exgqfpu_Fix-inconsistency-on-payment-process_Navid-Shad
May 6, 2026
Merged

Fix and stabilize authentication lifecycle and logout modal behavior #86exgqfpu#33
navidshad merged 2 commits into
mainfrom
CU-86exgqfpu_Fix-inconsistency-on-payment-process_Navid-Shad

Conversation

@navidshad
Copy link
Copy Markdown
Contributor

@navidshad navidshad commented May 6, 2026

🏷️ PR Title: Fix and stabilize authentication lifecycle and logout modal behavior

📋 Summary

This pull request addresses issues related to the authentication lifecycle, stabilizing the logout functionality, and improving the logout modal behavior for a smoother user experience.

🔗 Related Tasks

#86exgqfpu - Stabilize auth lifecycle and fix logout button

📝 Additional Details

  • Improved the logout modal to ensure better user interaction.
  • Fixed bugs causing instability in the authentication lifecycle.
  • Enhanced the logout button functionality to prevent inconsistent states.

📜 Commit List

821e783 tweak on logout modal
7810302 fix: #86exgqfpu stabilize auth lifecycle and fix logout button

navidshad and others added 2 commits May 6, 2026 13:19
- gate bootstrap on real user.type='user' so anonymous tokens no longer cascade into 412 logouts that wipe other tabs' sessions
- guard login.vue's loginAsAnonymous so it skips when a user token is already loaded, preventing in-memory clobber on bookmark revisits
- add axios 401/412 response interceptor that auto-clears stale tokens and redirects to /auth/login when protected calls fail with auth-bearing requests
- re-save user token after bootstrap (login_with_token + profile store) as defense against external content-script overwrites
- fix sign-out: hoist confirmation Modal out of the Dropdown body slot so the dropdown's <ul @click="close()"> no longer unmounts the modal before it can render; reload the page after logout to sidestep router race conditions

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@navidshad
Copy link
Copy Markdown
Contributor Author

@navidshad navidshad changed the title Cu 86exgqfpu fix inconsistency on payment process navid shad fix inconsistency on payment process #86exgqfpu May 6, 2026
@navidshad navidshad changed the title fix inconsistency on payment process #86exgqfpu Fix and stabilize authentication lifecycle and logout modal behavior #86exgqfpu May 6, 2026
@navidshad navidshad merged commit 518abca into main May 6, 2026
1 check 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.

1 participant