import React from "react"; import {clsx} from "keycloakify/lib/tools/clsx"; import type {PageProps, KcContextBase} from "keycloakify"; import type {KcContext} from "../kcContext"; import type {I18n} from "../i18n"; export default function LoginConfigTotp(props: PageProps, I18n>) { 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 (