File tree Expand file tree Collapse file tree 3 files changed +34
-3
lines changed
packages/clerk-js/src/core Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/clerk-js ' : minor
3
+ ' @clerk/types ' : minor
4
+ ---
5
+
6
+ Add ` navigate ` parameter to ` clerk.setActive() ` for custom navigation before the session and/or organization is set.
7
+
8
+ It's useful for handling pending session tasks for after-auth flows:
9
+
10
+ ``` typescript
11
+ await clerk .setActive ({
12
+ session ,
13
+ navigate : async ({ session }) => {
14
+ if (session .currentTask .key === ' choose-organization' ) {
15
+ await router .push (' /onboarding/choose-organization' )
16
+ }
17
+ }
18
+ });
19
+ ```
Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/tanstack-react-start ' : minor
3
+ ' @clerk/react-router ' : minor
4
+ ' @clerk/clerk-js ' : minor
5
+ ' @clerk/nextjs ' : minor
6
+ ' @clerk/clerk-react ' : minor
7
+ ' @clerk/remix ' : minor
8
+ ' @clerk/types ' : minor
9
+ ' @clerk/vue ' : minor
10
+ ---
11
+
12
+ Remove ` RedirectToTask ` control component
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ import type {
28
28
AuthenticateWithGoogleOneTapParams ,
29
29
AuthenticateWithMetamaskParams ,
30
30
AuthenticateWithOKXWalletParams ,
31
+ Clerk as ClerkInterface ,
31
32
ClerkAPIError ,
32
33
ClerkAuthenticateWithWeb3Params ,
33
- Clerk as ClerkInterface ,
34
34
ClerkOptions ,
35
35
ClientJSONSnapshot ,
36
36
ClientResource ,
@@ -2353,8 +2353,8 @@ export class Clerk implements ClerkInterface {
2353
2353
this . #authService = await AuthCookieService . create (
2354
2354
this ,
2355
2355
this . #fapiClient,
2356
-
2357
- this . #instanceType,
2356
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2357
+ this . #instanceType! ,
2358
2358
this . #publicEventBus,
2359
2359
) ;
2360
2360
You can’t perform that action at this time.
0 commit comments