@ory/elements-react 1.0.0-next.22 → 1.0.0-next.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -223,7 +223,7 @@ function parseStateFromFlow(flow) {
223
223
  return { current: "method_active", method: flow.flow.active };
224
224
  } else if (isChoosingMethod(flow.flow.ui.nodes)) {
225
225
  const authMethods = nodesToAuthMethodGroups(flow.flow.ui.nodes);
226
- if (authMethods.length === 1) {
226
+ if (authMethods.length === 1 && authMethods[0] !== "code") {
227
227
  return { current: "method_active", method: authMethods[0] };
228
228
  }
229
229
  return { current: "select_method" };