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 |
|
!preview |
|
Hey @octoper, your preview is available.
|
|
!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
02f53c5 to
3d05d89
Compare
|
!preview |
1 similar comment
|
!preview |
35446eb to
fe407fd
Compare
|
!preview |
d7f0e0a to
7c30128
Compare
| 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
|
@dimkl Added the change and E2E tests as you suggested |
805a6c3 to
a837390
Compare
082b1c4 to
961ecdb
Compare
Co-authored-by: panteliselef <panteliselef@outlook.com>
961ecdb to
08f0d42
Compare
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