Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat: passkey recover page

httpjamesmd0a73d729df7
diff --git a/web/apps/accounts/src/pages/passkeys/flow/Recover.tsx b/web/apps/accounts/src/pages/passkeys/flow/Recover.tsx
new file mode 100644
index 0000000000..aea836f6e7
--- /dev/null
+++ b/web/apps/accounts/src/pages/passkeys/flow/Recover.tsx
@@ -0,0 +1,19 @@
+import { TwoFactorType } from "@ente/accounts/constants/twofactor";
+import RecoverPage from "@ente/accounts/pages/recover";
+import { APPS } from "@ente/shared/apps/constants";
+import { useRouter } from "next/router";
+import { AppContext } from "pages/_app";
+import { useContext } from "react";
+
+export default function Recover() {
+ const appContext = useContext(AppContext);
+ const router = useRouter();
+ return (
+ <RecoverPage
+ appContext={appContext}
+ router={router}
+ appName={APPS.PHOTOS}
+ twoFactorType={TwoFactorType.PASSKEY}
+ />
+ );
+}