File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/clerk-js/src/core Expand file tree Collapse file tree 1 file changed +7
-4
lines changed 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 ,
32
31
ClerkAPIError ,
33
32
ClerkAuthenticateWithWeb3Params ,
33
+ Clerk as ClerkInterface ,
34
34
ClerkOptions ,
35
35
ClientJSONSnapshot ,
36
36
ClientResource ,
@@ -1319,7 +1319,10 @@ export class Clerk implements ClerkInterface {
1319
1319
}
1320
1320
1321
1321
if ( taskUrl ) {
1322
- await this . navigate ( taskUrl ) ;
1322
+ const taskUrlWithRedirect = redirectUrl
1323
+ ? buildURL ( { base : taskUrl , hashSearchParams : { redirectUrl } } , { stringify : true } )
1324
+ : taskUrl ;
1325
+ await this . navigate ( taskUrlWithRedirect ) ;
1323
1326
return ;
1324
1327
}
1325
1328
@@ -2350,8 +2353,8 @@ export class Clerk implements ClerkInterface {
2350
2353
this . #authService = await AuthCookieService . create (
2351
2354
this ,
2352
2355
this . #fapiClient,
2353
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2354
- this . #instanceType! ,
2356
+
2357
+ this . #instanceType,
2355
2358
this . #publicEventBus,
2356
2359
) ;
2357
2360
You can’t perform that action at this time.
0 commit comments