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

fix(sync): Always send firefox.fxaLogout on sign out #18029

Merged
merged 1 commit into from
Nov 16, 2024
Merged

Conversation

LZoog
Copy link
Contributor

@LZoog LZoog commented Nov 15, 2024

Because:

  • If users are signed into the browser but they've accessed account settings in a non-Sync context, the browser holds onto the old session token, leading to a 'Session Expired' page when they try to access CAD or account settings from the browser

This commit:

  • Removes the isSync() check around the firefox.fxaLogout call
  • Cleans up stuff no longer needed

closes FXA-10770

@LZoog LZoog requested a review from a team as a code owner November 15, 2024 18:57
return (
<div
className="flex flex-col justify-between min-h-screen"
data-testid="app"
>
<ContentSkip />
<div id="body-top" className="hidden mobileLandscape:block" />
<HeaderLockup {...{ integration }} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice to not need this prop. 💎

Copy link
Contributor

@vpomerleau vpomerleau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to take this out for a test run, but makes sense from a code perspective!

@vpomerleau
Copy link
Contributor

Confirmed, tested this out locally and it's working as expected! 🏆

Because:
* If users are signed into the browser but they've accessed account settings in a non-Sync context, the browser holds onto the old session token, leading to a 'Session Expired' page when they try to access CAD or account settings from the browser

This commit:
* Removes the isSync() check around the firefox.fxaLogout call
* Cleans up stuff no longer needed

fixes FXA-10770
@LZoog LZoog merged commit ea8f8b1 into main Nov 16, 2024
25 checks passed
@LZoog LZoog deleted the session-expired-fix branch November 16, 2024 00:24
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.

2 participants