fix: temporarily disable passkeys functionality due to upstream issues (#2700)

* fix: temporarily disable passkeys functionality due to upstream issues

* remove sourcemaps from git
This commit is contained in:
Amruth Pillai
2026-02-09 14:52:39 +01:00
committed by GitHub
parent 15327d74d8
commit 6242c8c182
14 changed files with 174 additions and 592 deletions
+1 -24
View File
@@ -1,6 +1,6 @@
import { t } from "@lingui/core/macro";
import { Trans } from "@lingui/react/macro";
import { FingerprintSimpleIcon, GithubLogoIcon, GoogleLogoIcon, VaultIcon } from "@phosphor-icons/react";
import { GithubLogoIcon, GoogleLogoIcon, VaultIcon } from "@phosphor-icons/react";
import { useQuery } from "@tanstack/react-query";
import { useRouter } from "@tanstack/react-router";
import { toast } from "sonner";
@@ -13,20 +13,6 @@ export function SocialAuth() {
const router = useRouter();
const { data: authProviders = {} } = useQuery(orpc.auth.providers.list.queryOptions());
const handlePasskeyLogin = async () => {
const toastId = toast.loading(t`Signing in...`);
const { error } = await authClient.signIn.passkey();
if (error) {
toast.error(error.message, { id: toastId });
return;
}
toast.dismiss(toastId);
router.invalidate();
};
const handleSocialLogin = async (provider: string) => {
const toastId = toast.loading(t`Signing in...`);
@@ -75,15 +61,6 @@ export function SocialAuth() {
<div>
<div className="grid grid-cols-2 gap-4">
<Button
variant="secondary"
onClick={handlePasskeyLogin}
className={cn("col-span-full", "custom" in authProviders && "col-span-1")}
>
<FingerprintSimpleIcon />
Passkey
</Button>
<Button
variant="secondary"
onClick={handleOAuthLogin}