Uh oh!
There was an error while loading. Please reload this page.
fix(clerk-js): Clear session after deleting an account - #3628
Conversation
🦋 Changeset detectedLatest commit: 08f0d42 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
octoper
commented
Jun 27, 2024
!preview |
Hey @octoper, your preview is available.
|
octoper
commented
Jun 27, 2024
!preview |
panteliselef
left a comment
There was a problem hiding this comment.
💯 Seems like we were working on the same thing, sorry for not communicating it. I asked some questions mainly because i went with a different direction
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
02f53c5 to
3d05d89Compareoctoper
commented
Jun 28, 2024
!preview |
1 similar comment
octoper
commented
Jun 28, 2024
!preview |
35446eb to
fe407fdCompareoctoper
commented
Jul 1, 2024
!preview |
d7f0e0a to
7c30128Compare| const navigationCallback = | ||
| otherSessions.length === 0 ? navigateAfterSignOut : navigateAfterMultiSessionSingleSignOutUrl; | ||
| return await setActive({ | ||
| session, |
There was a problem hiding this comment.
⛔ We should not use the previous session since it's (probably) already deleted. We should pass { session: null }
dimkl
left a comment
There was a problem hiding this comment.
I have left some comments. Also we need to add a test to verify the expected behaviour!
panteliselef
left a comment
There was a problem hiding this comment.
LGTM, added a comment for an updated changeset
Uh oh!
There was an error while loading. Please reload this page.
octoper
commented
Jul 1, 2024
@dimkl Added the change and E2E tests as you suggested |
805a6c3 to
a837390Compare082b1c4 to
961ecdbCompareCo-authored-by: panteliselef <panteliselef@outlook.com>
961ecdb to
08f0d42Compare
Description
This PR fixes an issue where the session is not cleared correctly after deleting an account
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change