Skip to content

Commit d3d4b04

Browse files
committed
Add changeset
1 parent a448b81 commit d3d4b04

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.changeset/yellow-radios-stop.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Fix `touchSession` option to only affect session touch behavior to window focus events.
6+
7+
Previously, when `touchSession: false` was provided, it incorrectly prevented session touching during `setActive()` calls when switching sessions or selecting organizations.

packages/clerk-js/src/core/clerk.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import type {
3131
AuthenticateWithMetamaskParams,
3232
AuthenticateWithOKXWalletParams,
3333
Clerk as ClerkInterface,
34-
Clerk as ClerkInterface,
3534
ClerkAPIError,
3635
ClerkAuthenticateWithWeb3Params,
3736
ClerkOptions,
@@ -2377,8 +2376,8 @@ export class Clerk implements ClerkInterface {
23772376
this.#authService = await AuthCookieService.create(
23782377
this,
23792378
this.#fapiClient,
2380-
2381-
this.#instanceType,
2379+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2380+
this.#instanceType!,
23822381
this.#publicEventBus,
23832382
);
23842383

0 commit comments

Comments
 (0)