elements
elements copied to clipboard
Refactor config from `useOryFlow` to its own hook
The useOryFlow hook relies on a FlowContext to be available, which might not be the case always (e.g. on the error page). We should refactor the hook, so that the config object gets its own hook instead.