File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasks] })(
73
73
await u . po . signUp . enterTestOtpCode ( ) ;
74
74
75
75
// Resolves task
76
- await u . po . signIn . waitForMounted ( ) ;
76
+ await u . po . signUp . waitForMounted ( ) ;
77
77
const fakeOrganization = Object . assign ( u . services . organizations . createFakeOrganization ( ) , {
78
78
slug : u . services . organizations . createFakeOrganization ( ) . slug + '-with-sign-in-sso' ,
79
79
} ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { useClerk } from '@clerk/shared/react';
3
3
import { useCallback , useEffect } from 'react' ;
4
4
5
5
import { useCardState } from '@/ui/elements/contexts' ;
6
- import { useRouter } from '@/ui/router' ;
7
6
import { handleError } from '@/ui/utils/errorHandler' ;
8
7
9
8
import { clerkInvalidFAPIResponse } from '../../../core/errors' ;
@@ -16,9 +15,8 @@ function useHandleAuthenticateWithPasskey(onSecondFactor: () => Promise<unknown>
16
15
// @ts -expect-error -- private method for the time being
17
16
const { setActive, __internal_navigateWithError } = useClerk ( ) ;
18
17
const supportEmail = useSupportEmail ( ) ;
19
- const { afterSignInUrl, signInUrl , navigateOnSetActive } = useSignInContext ( ) ;
18
+ const { afterSignInUrl, navigateOnSetActive } = useSignInContext ( ) ;
20
19
const { authenticateWithPasskey } = useCoreSignIn ( ) ;
21
- const { navigate } = useRouter ( ) ;
22
20
23
21
useEffect ( ( ) => {
24
22
return ( ) => {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const SignInContext = createContext<SignInCtx | null>(null);
37
37
38
38
export const useSignInContext = ( ) : SignInContextType => {
39
39
const context = useContext ( SignInContext ) ;
40
- const { navigate, indexPath } = useRouter ( ) ;
40
+ const { navigate, basePath } = useRouter ( ) ;
41
41
const { displayConfig, userSettings } = useEnvironment ( ) ;
42
42
const { queryParams, queryString } = useRouter ( ) ;
43
43
const signUpMode = userSettings . signUp . mode ;
@@ -126,7 +126,7 @@ export const useSignInContext = (): SignInContextType => {
126
126
return navigate ( redirectUrl ) ;
127
127
}
128
128
129
- return navigate ( indexPath + ` /tasks/${ INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ currentTask . key ] } `) ;
129
+ return navigate ( `/ ${ basePath } /tasks/${ INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ currentTask . key ] } `) ;
130
130
} ;
131
131
132
132
const taskUrl = clerk . session ?. currentTask
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const SignUpContext = createContext<SignUpCtx | null>(null);
36
36
37
37
export const useSignUpContext = ( ) : SignUpContextType => {
38
38
const context = useContext ( SignUpContext ) ;
39
- const { navigate, indexPath } = useRouter ( ) ;
39
+ const { navigate, basePath } = useRouter ( ) ;
40
40
const { displayConfig, userSettings } = useEnvironment ( ) ;
41
41
const { queryParams, queryString } = useRouter ( ) ;
42
42
const signUpMode = userSettings . signUp . mode ;
@@ -121,7 +121,7 @@ export const useSignUpContext = (): SignUpContextType => {
121
121
return navigate ( redirectUrl ) ;
122
122
}
123
123
124
- return navigate ( indexPath + ` /tasks/${ INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ currentTask . key ] } `) ;
124
+ return navigate ( `/ ${ basePath } /tasks/${ INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ currentTask . key ] } `) ;
125
125
} ;
126
126
127
127
const taskUrl = clerk . session ?. currentTask
You can’t perform that action at this time.
0 commit comments