diff --git a/frontend/elements/src/contexts/AppProvider.tsx b/frontend/elements/src/contexts/AppProvider.tsx index d0f3417d7..a463e2247 100644 --- a/frontend/elements/src/contexts/AppProvider.tsx +++ b/frontend/elements/src/contexts/AppProvider.tsx @@ -145,7 +145,7 @@ const AppProvider = ({ hanko.onUserDeleted(init); break; case "profile": - hanko.onSessionCreated(init); + hanko.onAuthFlowCompleted(init); break; } }, [componentName, hanko, init]);