@@ -17,7 +17,7 @@ export function handleGetFlowError<S>(
17
17
return
18
18
case "session_already_available" :
19
19
// User is already signed in, let's redirect them home!
20
- await router . push ( "/welcome " )
20
+ await router . push ( "/cognition " )
21
21
return
22
22
case "session_refresh_required" :
23
23
// We need to re-authenticate to perform this action
@@ -27,13 +27,13 @@ export function handleGetFlowError<S>(
27
27
// The flow expired, let's request a new one.
28
28
toast . error ( "The return_to address is not allowed." )
29
29
resetFlow ( undefined )
30
- await router . push ( "/welcome " + flowType )
30
+ await router . push ( "/cognition " + flowType )
31
31
return
32
32
case "self_service_flow_expired" :
33
33
// The flow expired, let's request a new one.
34
34
toast . error ( "Your interaction expired, please fill out the form again." )
35
35
resetFlow ( undefined )
36
- await router . push ( "/welcome " + flowType )
36
+ await router . push ( "/cognition " + flowType )
37
37
return
38
38
case "security_csrf_violation" :
39
39
// A CSRF violation occurred. Best to just refresh the flow!
@@ -46,7 +46,7 @@ export function handleGetFlowError<S>(
46
46
case "security_identity_mismatch" :
47
47
// The requested item was intended for someone else. Let's request a new flow...
48
48
resetFlow ( undefined )
49
- await router . push ( "/welcome " + flowType )
49
+ await router . push ( "/cognition " + flowType )
50
50
return
51
51
case "browser_location_change_required" :
52
52
// Ory Kratos asked us to point the user to this URL.
@@ -58,7 +58,7 @@ export function handleGetFlowError<S>(
58
58
case 410 :
59
59
// The flow expired, let's request a new one.
60
60
resetFlow ( undefined )
61
- await router . push ( "/welcome " + flowType )
61
+ await router . push ( "/cognition " + flowType )
62
62
return
63
63
}
64
64
0 commit comments