rm session token from totp register request

This commit is contained in:
peintnermax
2024-05-07 09:55:23 +02:00
parent 6c27c447ec
commit a85eb93939
2 changed files with 2 additions and 11 deletions

View File

@@ -35,8 +35,7 @@ export default async function Page({
totpError: ClientError | undefined;
if (session && session.factors?.user?.id) {
if (method === "time-based") {
// inconsistency with token: email works with machine token, totp works with session token
await registerTOTP(session.factors.user.id, token)
await registerTOTP(session.factors.user.id)
.then((resp) => {
if (resp) {
totpResponse = resp;

View File

@@ -1,14 +1,6 @@
"use client";
import {
AuthenticationMethodType,
LoginSettings,
login,
} from "@zitadel/server";
import Link from "next/link";
import { BadgeState, StateBadge } from "./StateBadge";
import clsx from "clsx";
import { CheckIcon } from "@heroicons/react/24/outline";
import { AuthenticationMethodType, LoginSettings } from "@zitadel/server";
import { EMAIL, SMS, TOTP, U2F } from "./AuthMethods";
type Props = {