mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
chore: fix type
This commit is contained in:
@@ -8,8 +8,8 @@ import { Spinner } from "./Spinner";
|
|||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { TextInput } from "./Input";
|
import { TextInput } from "./Input";
|
||||||
import BackButton from "./BackButton";
|
import BackButton from "./BackButton";
|
||||||
import { Checks } from "@zitadel/proto/zitadel/session/v2/session_service_pb";
|
import { ChecksJson } from "@zitadel/proto/zitadel/session/v2/session_service_pb";
|
||||||
import { Challenges } from "@zitadel/proto/zitadel/session/v2/challenge_pb";
|
import { ChallengesJson } from "@zitadel/proto/zitadel/session/v2/challenge_pb";
|
||||||
|
|
||||||
// either loginName or sessionId must be provided
|
// either loginName or sessionId must be provided
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -63,7 +63,7 @@ export default function LoginOTP({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
async function updateSessionForOTPChallenge() {
|
async function updateSessionForOTPChallenge() {
|
||||||
const challenges: Challenges = {};
|
const challenges: ChallengesJson = {};
|
||||||
|
|
||||||
if (method === "email") {
|
if (method === "email") {
|
||||||
challenges.otpEmail = "";
|
challenges.otpEmail = "";
|
||||||
@@ -111,7 +111,7 @@ export default function LoginOTP({
|
|||||||
body.authRequestId = authRequestId;
|
body.authRequestId = authRequestId;
|
||||||
}
|
}
|
||||||
|
|
||||||
const checks: Checks = {};
|
const checks: ChecksJson = {};
|
||||||
if (method === "sms") {
|
if (method === "sms") {
|
||||||
checks.otpSms = { code: values.code };
|
checks.otpSms = { code: values.code };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user