diff --git a/src/markup-components/index.ts b/src/markup-components/index.ts index 23754d7ee..f697ad51e 100644 --- a/src/markup-components/index.ts +++ b/src/markup-components/index.ts @@ -3,7 +3,7 @@ export * from "./components" export * from "./express" export { hasLookupSecret, - hasOIDC, + hasOidc, hasTotp, hasPassword, hasWebauthn, diff --git a/src/react-components/ory/helpers/utils.ts b/src/react-components/ory/helpers/utils.ts index 2d1dc6652..fbd53817c 100644 --- a/src/react-components/ory/helpers/utils.ts +++ b/src/react-components/ory/helpers/utils.ts @@ -1,6 +1,6 @@ import { UiNode } from "@ory/client" -export const hasOIDC = (nodes: UiNode[]) => +export const hasOidc = (nodes: UiNode[]) => nodes.some(({ group }) => group === "oidc") export const hasPassword = (nodes: UiNode[]) => nodes.some(({ group }) => group === "password") diff --git a/src/react-components/ory/sections/oidc-section.tsx b/src/react-components/ory/sections/oidc-section.tsx index eb2ed8baf..9d36ae794 100644 --- a/src/react-components/ory/sections/oidc-section.tsx +++ b/src/react-components/ory/sections/oidc-section.tsx @@ -4,10 +4,10 @@ import { gridStyle } from "../../../theme" import { NodeMessages } from "../helpers/error-messages" import { FilterFlowNodes } from "../helpers/filter-flow-nodes" import { SelfServiceFlow } from "../helpers/types" -import { hasOIDC } from "../helpers/utils" +import { hasOidc } from "../helpers/utils" export const OIDCSection = (flow: SelfServiceFlow): JSX.Element | null => { - return hasOIDC(flow.ui.nodes) ? ( + return hasOidc(flow.ui.nodes) ? (