import React from "react"; import { clsx } from "../tools/clsx"; import type { PageProps } from "../KcProps"; import type { KcContextBase } from "../getKcContext"; import type { I18nBase, MessageKeyBase } from "../i18n"; export default function LoginConfigTotp(props: PageProps, I18nBase>) { const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props; const { url, isAppInitiatedAction, totp, mode, messagesPerField } = kcContext; const { msg, msgStr } = i18n; const algToKeyUriAlg: Record = { "HmacSHA1": "SHA1", "HmacSHA256": "SHA256", "HmacSHA512": "SHA512" }; return (