mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 12:29:04 +00:00
passkey cleanup
This commit is contained in:
@@ -79,7 +79,6 @@ export default async function Page(props: {
|
||||
authRequestId={authRequestId}
|
||||
altPassword={altPassword === "true"}
|
||||
organization={organization}
|
||||
loginSettings={loginSettings}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
UserVerificationRequirement,
|
||||
} from "@zitadel/proto/zitadel/session/v2/challenge_pb";
|
||||
import { Checks } from "@zitadel/proto/zitadel/session/v2/session_service_pb";
|
||||
import { LoginSettings } from "@zitadel/proto/zitadel/settings/v2/login_settings_pb";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
@@ -26,7 +25,6 @@ type Props = {
|
||||
altPassword: boolean;
|
||||
login?: boolean;
|
||||
organization?: string;
|
||||
loginSettings?: LoginSettings;
|
||||
};
|
||||
|
||||
export function LoginPasskey({
|
||||
@@ -36,7 +34,6 @@ export function LoginPasskey({
|
||||
altPassword,
|
||||
organization,
|
||||
login = true,
|
||||
loginSettings,
|
||||
}: Props) {
|
||||
const t = useTranslations("passkey");
|
||||
|
||||
@@ -47,7 +44,6 @@ export function LoginPasskey({
|
||||
|
||||
const initialized = useRef(false);
|
||||
|
||||
// TODO: move this to server side
|
||||
useEffect(() => {
|
||||
if (!initialized.current) {
|
||||
initialized.current = true;
|
||||
|
||||
Reference in New Issue
Block a user