@@ -17,7 +17,7 @@ export function handleGetFlowError<S>(
1717 return
1818 case "session_already_available" :
1919 // User is already signed in, let's redirect them home!
20- await router . push ( "/welcome " )
20+ await router . push ( "/cognition " )
2121 return
2222 case "session_refresh_required" :
2323 // We need to re-authenticate to perform this action
@@ -27,13 +27,13 @@ export function handleGetFlowError<S>(
2727 // The flow expired, let's request a new one.
2828 toast . error ( "The return_to address is not allowed." )
2929 resetFlow ( undefined )
30- await router . push ( "/welcome " + flowType )
30+ await router . push ( "/cognition " + flowType )
3131 return
3232 case "self_service_flow_expired" :
3333 // The flow expired, let's request a new one.
3434 toast . error ( "Your interaction expired, please fill out the form again." )
3535 resetFlow ( undefined )
36- await router . push ( "/welcome " + flowType )
36+ await router . push ( "/cognition " + flowType )
3737 return
3838 case "security_csrf_violation" :
3939 // A CSRF violation occurred. Best to just refresh the flow!
@@ -46,7 +46,7 @@ export function handleGetFlowError<S>(
4646 case "security_identity_mismatch" :
4747 // The requested item was intended for someone else. Let's request a new flow...
4848 resetFlow ( undefined )
49- await router . push ( "/welcome " + flowType )
49+ await router . push ( "/cognition " + flowType )
5050 return
5151 case "browser_location_change_required" :
5252 // Ory Kratos asked us to point the user to this URL.
@@ -58,7 +58,7 @@ export function handleGetFlowError<S>(
5858 case 410 :
5959 // The flow expired, let's request a new one.
6060 resetFlow ( undefined )
61- await router . push ( "/welcome " + flowType )
61+ await router . push ( "/cognition " + flowType )
6262 return
6363 }
6464
0 commit comments