diff --git a/apps/web/app/(auth)/sign-in/page.tsx b/apps/web/app/(auth)/sign-in/page.tsx index 1f6fe9f..7446c2f 100644 --- a/apps/web/app/(auth)/sign-in/page.tsx +++ b/apps/web/app/(auth)/sign-in/page.tsx @@ -69,15 +69,20 @@ const SignInPage = () => { event.preventDefault(); const form = new FormData(event.currentTarget); setPending(true); - const { error } = await signIn.email({ + const { data, error } = await signIn.email({ email: String(form.get("email")), password: String(form.get("password")), }); - setPending(false); if (error) { + setPending(false); toast.error(error.message ?? "Sign in failed"); return; } + // The two-factor client plugin is already sending us to /two-factor. + if (data && "twoFactorRedirect" in data && data.twoFactorRedirect) { + return; + } + setPending(false); router.push(nextPath()); router.refresh(); }; diff --git a/apps/web/app/(auth)/two-factor/page.tsx b/apps/web/app/(auth)/two-factor/page.tsx new file mode 100644 index 0000000..437e367 --- /dev/null +++ b/apps/web/app/(auth)/two-factor/page.tsx @@ -0,0 +1,131 @@ +"use client"; +import Link from "next/link"; +import { useRouter } from "next/navigation"; +import { useState } from "react"; +import { toast } from "sonner"; + +import { Button } from "@/components/ui/button"; +import { Checkbox } from "@/components/ui/checkbox"; +import { Input } from "@/components/ui/input"; +import { + InputOTP, + InputOTPGroup, + InputOTPSlot, +} from "@/components/ui/input-otp"; +import { Label } from "@/components/ui/label"; +import { authClient } from "@/lib/auth-client"; + +const nextPath = () => { + const next = new URLSearchParams(window.location.search).get("next"); + return next?.startsWith("/") && !/^\/[/\\]/u.test(next) ? next : "/dashboard"; +}; + +const TwoFactorPage = () => { + const router = useRouter(); + const [useBackup, setUseBackup] = useState(false); + const [code, setCode] = useState(""); + const [trustDevice, setTrustDevice] = useState(false); + const [pending, setPending] = useState(false); + + const handleSubmit = async (event: React.FormEvent) => { + event.preventDefault(); + setPending(true); + const { error } = useBackup + ? await authClient.twoFactor.verifyBackupCode({ + code: code.trim(), + trustDevice, + }) + : await authClient.twoFactor.verifyTotp({ code, trustDevice }); + if (error) { + setPending(false); + setCode(""); + toast.error(error.message ?? "Invalid code"); + return; + } + router.push(nextPath()); + router.refresh(); + }; + + const toggleMode = () => { + setUseBackup((value) => !value); + setCode(""); + }; + + return ( +
+
+

+ Two-factor authentication +

+

+ {useBackup + ? "Enter one of your backup codes." + : "Enter the 6-digit code from your authenticator app."} +

+
+
+ {useBackup ? ( +
+ + setCode(event.target.value)} + required + value={code} + /> +
+ ) : ( + + + {Array.from({ length: 6 }, (_, index) => ( + + ))} + + + )} +
+ setTrustDevice(checked === true)} + /> + +
+ +
+
+ + + Back to sign in + +
+
+ ); +}; + +export default TwoFactorPage; diff --git a/apps/web/app/dashboard/account/components/account-tabs.tsx b/apps/web/app/dashboard/account/components/account-tabs.tsx index 5675b69..8851f56 100644 --- a/apps/web/app/dashboard/account/components/account-tabs.tsx +++ b/apps/web/app/dashboard/account/components/account-tabs.tsx @@ -8,11 +8,11 @@ import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; const TABS = [ { href: "/dashboard/account", label: "Profile", value: "profile" }, { href: "/dashboard/account/password", label: "Password", value: "password" }, - { href: "/dashboard/account/passkeys", label: "Passkeys", value: "passkeys" }, + { href: "/dashboard/account/security", label: "Security", value: "security" }, { href: "/dashboard/account/billing", label: "Billing", value: "billing" }, ] as const; -const SECURITY_TABS = new Set(["password", "passkeys"]); +const SECURITY_TABS = new Set(["password", "security"]); export const AccountTabs = ({ showSecurity }: { showSecurity: boolean }) => { const tabs = TABS.filter( diff --git a/apps/web/app/dashboard/account/components/two-factor-panel.tsx b/apps/web/app/dashboard/account/components/two-factor-panel.tsx new file mode 100644 index 0000000..d2ca717 --- /dev/null +++ b/apps/web/app/dashboard/account/components/two-factor-panel.tsx @@ -0,0 +1,383 @@ +"use client"; +import { CopyIcon, DownloadIcon, ShieldCheckIcon } from "lucide-react"; +import { useRouter } from "next/navigation"; +import { QRCodeSVG } from "qrcode.react"; +import { useState } from "react"; +import { toast } from "sonner"; + +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog"; +import { Input } from "@/components/ui/input"; +import { + InputOTP, + InputOTPGroup, + InputOTPSlot, +} from "@/components/ui/input-otp"; +import { Label } from "@/components/ui/label"; +import { authClient } from "@/lib/auth-client"; + +type Action = "enable" | "disable" | "regenerate"; + +type Step = + | { kind: "password"; action: Action } + | { kind: "scan"; totpURI: string; backupCodes: string[] } + | { kind: "codes"; backupCodes: string[] }; + +const PASSWORD_COPY: Record = { + disable: { + description: "Confirm your password to turn off two-factor authentication.", + title: "Disable two-factor authentication", + }, + enable: { + description: + "Confirm your password to start setting up an authenticator app.", + title: "Enable two-factor authentication", + }, + regenerate: { + description: + "Confirm your password to generate new backup codes. Your old codes will stop working.", + title: "Regenerate backup codes", + }, +}; + +const secretFromURI = (uri: string): string => + new URL(uri).searchParams.get("secret") ?? ""; + +const copyCodes = async (codes: string[]) => { + await navigator.clipboard.writeText(codes.join("\n")); + toast.success("Backup codes copied"); +}; + +const downloadCodes = (codes: string[]) => { + const url = URL.createObjectURL( + new Blob([`${codes.join("\n")}\n`], { type: "text/plain" }) + ); + const link = document.createElement("a"); + link.href = url; + link.download = "backup-codes.txt"; + link.click(); + URL.revokeObjectURL(url); +}; + +export const TwoFactorPanel = ({ + enabled, + hasPassword, +}: { + enabled: boolean; + hasPassword: boolean; +}) => { + const router = useRouter(); + const [step, setStep] = useState(null); + const [password, setPassword] = useState(""); + const [code, setCode] = useState(""); + const [pending, setPending] = useState(false); + + const close = () => { + setStep(null); + setPassword(""); + setCode(""); + }; + + const submitPassword = async (action: Action) => { + setPending(true); + if (action === "enable") { + const { data, error } = await authClient.twoFactor.enable({ password }); + setPending(false); + if (error || !data || !("totpURI" in data)) { + toast.error(error?.message ?? "Could not start setup"); + return; + } + setPassword(""); + setStep({ + backupCodes: data.backupCodes, + kind: "scan", + totpURI: data.totpURI, + }); + return; + } + if (action === "regenerate") { + const { data, error } = await authClient.twoFactor.generateBackupCodes({ + password, + }); + setPending(false); + if (error || !data) { + toast.error(error?.message ?? "Could not generate backup codes"); + return; + } + setPassword(""); + setStep({ backupCodes: data.backupCodes, kind: "codes" }); + return; + } + const { error } = await authClient.twoFactor.disable({ password }); + setPending(false); + if (error) { + toast.error(error.message ?? "Could not disable two-factor"); + return; + } + toast.success("Two-factor authentication disabled"); + close(); + router.refresh(); + }; + + const submitCode = async (backupCodes: string[]) => { + setPending(true); + const { error } = await authClient.twoFactor.verifyTotp({ code }); + setPending(false); + if (error) { + toast.error(error.message ?? "Invalid code"); + setCode(""); + return; + } + toast.success("Two-factor authentication enabled"); + setCode(""); + setStep({ backupCodes, kind: "codes" }); + }; + + const finish = () => { + close(); + router.refresh(); + }; + + const renderDialog = () => { + if (!step) { + return null; + } + if (step.kind === "password") { + const copy = PASSWORD_COPY[step.action]; + return ( +
{ + event.preventDefault(); + submitPassword(step.action); + }} + > + + {copy.title} + {copy.description} + +
+ + setPassword(event.target.value)} + required + type="password" + value={password} + /> +
+ + + + +
+ ); + } + if (step.kind === "scan") { + return ( +
{ + event.preventDefault(); + submitCode(step.backupCodes); + }} + > + + Scan with your authenticator app + + Scan this QR code with an app like 1Password, Google Authenticator + or Authy, then enter the 6-digit code it shows. + + +
+
+ +
+
+ Can't scan? Enter this key manually: + + {secretFromURI(step.totpURI)} + +
+
+
+ + + {Array.from({ length: 6 }, (_, index) => ( + + ))} + + +
+ + + + +
+ ); + } + return ( + <> + + Save your backup codes + + Each code can be used once to sign in if you lose access to your + authenticator app. Store them somewhere safe — they won't be + shown again. + + +
+ {step.backupCodes.map((backupCode) => ( + {backupCode} + ))} +
+
+ + +
+ + + + + ); + }; + + const renderBody = () => { + if (!hasPassword) { + return ( +

+ Set a password on your account before enabling two-factor + authentication. +

+ ); + } + if (enabled) { + return ( + <> +

+ You'll be asked for a code from your authenticator app when + signing in with your password. +

+
+ + +
+ + ); + } + return ( + <> +

+ Add an extra layer of security by requiring a code from an + authenticator app when you sign in with your password. +

+ + + ); + }; + + return ( + <> +
+
+

Two-factor authentication

+ {enabled && Enabled} +
+ {renderBody()} +
+ + { + // Backup codes must be acknowledged explicitly before closing. + if (!open && step?.kind !== "codes") { + close(); + } + }} + open={step !== null} + > + {renderDialog()} + + + ); +}; diff --git a/apps/web/app/dashboard/account/passkeys/page.tsx b/apps/web/app/dashboard/account/security/page.tsx similarity index 56% rename from apps/web/app/dashboard/account/passkeys/page.tsx rename to apps/web/app/dashboard/account/security/page.tsx index 2135da0..95cb585 100644 --- a/apps/web/app/dashboard/account/passkeys/page.tsx +++ b/apps/web/app/dashboard/account/security/page.tsx @@ -1,10 +1,12 @@ import { redirect } from "next/navigation"; +import { prisma } from "@/lib/db"; import { isStaff, requireUser } from "@/lib/session"; import { customersUseBytepay, getPanelSettings } from "@/lib/settings"; import { PageBody } from "../../components/page-header"; import { PasskeysPanel } from "../components/passkeys-panel"; +import { TwoFactorPanel } from "../components/two-factor-panel"; const PasskeysPage = async () => { const user = await requireUser(); @@ -13,9 +15,25 @@ const PasskeysPage = async () => { redirect("/dashboard/account"); } + const credential = await prisma.account.findFirst({ + select: { id: true }, + where: { + password: { not: null }, + providerId: "credential", + userId: user.id, + }, + }); + return ( +
+
); }; diff --git a/apps/web/lib/auth-client.ts b/apps/web/lib/auth-client.ts index 2d53744..fc3d711 100644 --- a/apps/web/lib/auth-client.ts +++ b/apps/web/lib/auth-client.ts @@ -1,9 +1,17 @@ "use client"; import { passkeyClient } from "@better-auth/passkey/client"; -import { adminClient } from "better-auth/client/plugins"; +import { adminClient, twoFactorClient } from "better-auth/client/plugins"; import { createAuthClient } from "better-auth/react"; export const authClient = createAuthClient({ - plugins: [passkeyClient(), adminClient()], + plugins: [ + passkeyClient(), + adminClient(), + twoFactorClient({ + onTwoFactorRedirect: () => { + window.location.href = `/security${window.location.search}`; + }, + }), + ], }); export const { useSession, signIn, signUp, signOut } = authClient; diff --git a/apps/web/lib/auth.ts b/apps/web/lib/auth.ts index 5acb6b9..b37b7fa 100644 --- a/apps/web/lib/auth.ts +++ b/apps/web/lib/auth.ts @@ -6,7 +6,7 @@ import { prismaAdapter } from "better-auth/adapters/prisma"; import { APIError, createAuthMiddleware } from "better-auth/api"; import { hashPassword, verifyPassword } from "better-auth/crypto"; import { nextCookies } from "better-auth/next-js"; -import { admin, genericOAuth } from "better-auth/plugins"; +import { admin, genericOAuth, twoFactor } from "better-auth/plugins"; import { bytepayEnabled, env } from "@/lib/env"; import { loginLinks } from "@/lib/login-link-plugin"; @@ -171,6 +171,7 @@ export const auth = betterAuth({ }, plugins: [ passkey({ rpName: "BytePanel" }), + twoFactor({ issuer: "BytePanel" }), loginLinks(), admin({ defaultRole: "user", diff --git a/apps/web/package.json b/apps/web/package.json index 6c982bf..cee6cc2 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -55,6 +55,7 @@ "next-themes": "^0.4.6", "nodemailer": "^10.5.0", "pg": "^8.23.1", + "qrcode.react": "^4.2.0", "radix-ui": "^1.8.1", "react": "19.3.1", "react-day-picker": "^10.0.2", diff --git a/apps/web/prisma/migrations/20261119000000_two_factor/migration.sql b/apps/web/prisma/migrations/20261119000000_two_factor/migration.sql new file mode 100644 index 0000000..8f59728 --- /dev/null +++ b/apps/web/prisma/migrations/20261119000000_two_factor/migration.sql @@ -0,0 +1,24 @@ +-- AlterTable +ALTER TABLE "users" ADD COLUMN "twoFactorEnabled" BOOLEAN NOT NULL DEFAULT false; + +-- CreateTable +CREATE TABLE "two_factors" ( + "id" TEXT NOT NULL, + "secret" TEXT NOT NULL, + "backupCodes" TEXT NOT NULL, + "userId" TEXT NOT NULL, + "verified" BOOLEAN NOT NULL DEFAULT true, + "failedVerificationCount" INTEGER NOT NULL DEFAULT 0, + "lockedUntil" TIMESTAMP(3), + + CONSTRAINT "two_factors_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE INDEX "two_factors_secret_idx" ON "two_factors"("secret"); + +-- CreateIndex +CREATE INDEX "two_factors_userId_idx" ON "two_factors"("userId"); + +-- AddForeignKey +ALTER TABLE "two_factors" ADD CONSTRAINT "two_factors_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma index 6447fb2..cf509cc 100644 --- a/apps/web/prisma/schema.prisma +++ b/apps/web/prisma/schema.prisma @@ -38,11 +38,13 @@ model User { banned Boolean @default(false) banReason String? banExpires DateTime? + twoFactorEnabled Boolean @default(false) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt sessions Session[] accounts Account[] passkeys Passkey[] + twoFactors TwoFactor[] servers Server[] serverMemberships ServerMember[] @relation("MemberUser") sentInvites ServerInvite[] @relation("InviteBy") @@ -122,6 +124,21 @@ model Passkey { @@map("passkeys") } +model TwoFactor { + id String @id + secret String + backupCodes String + userId String + verified Boolean @default(true) + failedVerificationCount Int @default(0) + lockedUntil DateTime? + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + + @@index([secret]) + @@index([userId]) + @@map("two_factors") +} + enum ServerStatus { installing install_failed diff --git a/apps/web/proxy.ts b/apps/web/proxy.ts index deb55fe..92bb9ea 100644 --- a/apps/web/proxy.ts +++ b/apps/web/proxy.ts @@ -15,6 +15,7 @@ const PUBLIC_PATHS = [ "/sign-in", "/sign-up", "/forgot-password", + "/two-factor", "/reset-password", "/robots.txt", "/api/auth", diff --git a/bun.lock b/bun.lock index 866dcac..4ef2fd2 100644 --- a/bun.lock +++ b/bun.lock @@ -63,6 +63,7 @@ "next-themes": "^0.4.6", "nodemailer": "^10.5.0", "pg": "^8.23.1", + "qrcode.react": "4.2.0", "radix-ui": "^1.8.1", "react": "19.3.1", "react-day-picker": "^10.0.2", @@ -259,8 +260,6 @@ "@dotenvx/dotenvx": ["@dotenvx/dotenvx@1.64.0", "", { "dependencies": { "commander": "^11.1.0", "dotenv": "^17.2.1", "eciesjs": "^0.4.10", "execa": "^5.1.1", "fdir": "^6.2.0", "ignore": "^5.3.0", "object-treeify": "1.1.33", "picomatch": "^4.0.4", "which": "^4.0.0", "yocto-spinner": "^1.1.0" }, "bin": { "dotenvx": "src/cli/dotenvx.js" } }, "sha512-6+xRpZaWuHXEqnhBjae+VmQI9Uaqw5Uzu/ScpO+W7ww9Zp3lHSNBoNjFcUxhrCyc7pRGQzyDjhKzloqrPHERiQ=="], - "@ecies/ciphers": ["@ecies/ciphers@0.2.6", "", { "peerDependencies": { "@noble/ciphers": "^1.0.0" } }, "sha512-patgsRPKGkhhoBjETV4XxD0En4ui5fbX0hzayqI3M8tvNMGUoUvmyYAIWwlxBc1KX5cturfqByYdj5bYGRpN9g=="], - "@electric-sql/pglite": ["@electric-sql/pglite@0.4.3", "", {}, "sha512-ichuWTgtd4mOM1G4SpyGJa5trT03lWbMypDV0fUXUCXg5hiHqVAz/bZyV68NqmkLB7WcYmj1RMJVSp8HV/v/ZQ=="], "@electric-sql/pglite-socket": ["@electric-sql/pglite-socket@0.1.3", "", { "peerDependencies": { "@electric-sql/pglite": "0.4.3" }, "bin": { "pglite-server": "dist/scripts/server.js" } }, "sha512-LAciWM0M1dCL8hlsxu2venbVZcdxema0BtDfpWYVqr+Y468UADw0pFWidhKw1M8sfJ8rdLT71tjMmnirf/IZRQ=="], @@ -1531,6 +1530,8 @@ "pvutils": ["pvutils@1.1.5", "", {}, "sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA=="], + "qrcode.react": ["qrcode.react@4.2.0", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-QpgqWi8rD9DsS9EP3z7BT+5lY5SFhsqGjpgW5DY/i3mK4M9DTBNz3ErMi8BWYEfI3L0d8GIbGmcdFAS1uIRGjA=="], + "queue-microtask": ["queue-microtask@1.2.3", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="], "radix-ui": ["radix-ui@1.8.1", "", { "dependencies": { "@radix-ui/primitive": "1.2.0", "@radix-ui/react-accessible-icon": "1.2.0", "@radix-ui/react-accordion": "1.3.1", "@radix-ui/react-alert-dialog": "1.2.1", "@radix-ui/react-arrow": "1.1.17", "@radix-ui/react-aspect-ratio": "1.2.0", "@radix-ui/react-avatar": "1.3.1", "@radix-ui/react-checkbox": "1.4.1", "@radix-ui/react-collapsible": "1.2.1", "@radix-ui/react-collection": "1.2.0", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.3.0", "@radix-ui/react-context-menu": "2.4.1", "@radix-ui/react-dialog": "1.3.1", "@radix-ui/react-direction": "1.2.0", "@radix-ui/react-dismissable-layer": "1.2.1", "@radix-ui/react-dropdown-menu": "2.2.1", "@radix-ui/react-focus-guards": "1.2.0", "@radix-ui/react-focus-scope": "1.3.1", "@radix-ui/react-form": "0.3.0", "@radix-ui/react-hover-card": "1.2.1", "@radix-ui/react-label": "2.1.17", "@radix-ui/react-menu": "2.2.1", "@radix-ui/react-menubar": "1.2.1", "@radix-ui/react-navigation-menu": "1.4.1", "@radix-ui/react-one-time-password-field": "0.2.1", "@radix-ui/react-password-toggle-field": "0.2.1", "@radix-ui/react-popover": "1.3.1", "@radix-ui/react-popper": "1.4.0", "@radix-ui/react-portal": "1.2.0", "@radix-ui/react-presence": "1.1.11", "@radix-ui/react-primitive": "2.2.0", "@radix-ui/react-progress": "1.2.1", "@radix-ui/react-radio-group": "1.5.1", "@radix-ui/react-roving-focus": "1.2.1", "@radix-ui/react-scroll-area": "1.4.0", "@radix-ui/react-select": "2.4.1", "@radix-ui/react-separator": "1.2.0", "@radix-ui/react-slider": "1.6.1", "@radix-ui/react-slot": "1.5.0", "@radix-ui/react-switch": "1.4.1", "@radix-ui/react-tabs": "1.2.1", "@radix-ui/react-toast": "1.3.1", "@radix-ui/react-toggle": "1.2.1", "@radix-ui/react-toggle-group": "1.2.1", "@radix-ui/react-toolbar": "1.2.1", "@radix-ui/react-tooltip": "1.4.1", "@radix-ui/react-use-callback-ref": "1.1.5", "@radix-ui/react-use-controllable-state": "1.3.0", "@radix-ui/react-use-effect-event": "0.0.5", "@radix-ui/react-use-escape-keydown": "1.1.6", "@radix-ui/react-use-is-hydrated": "0.1.3", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-size": "1.1.5", "@radix-ui/react-visually-hidden": "1.2.13" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-HPfpVGizO9xANlsFSauruLhRe/3+iOt3vPX0MXYle/UQi3gorQrSYtBcdiv0BZYewcl2rvL59qrIuLFMGAmUrw=="], @@ -1797,8 +1798,6 @@ "@dotenvx/dotenvx/picomatch": ["picomatch@4.0.4", "", {}, "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A=="], - "@ecies/ciphers/@noble/ciphers": ["@noble/ciphers@1.3.0", "", {}, "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw=="], - "@jridgewell/gen-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], "@jridgewell/trace-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], @@ -2053,6 +2052,8 @@ "cross-spawn/which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + "eciesjs/@ecies/ciphers": ["@ecies/ciphers@0.2.6", "", { "peerDependencies": { "@noble/ciphers": "^1.0.0" } }, "sha512-patgsRPKGkhhoBjETV4XxD0En4ui5fbX0hzayqI3M8tvNMGUoUvmyYAIWwlxBc1KX5cturfqByYdj5bYGRpN9g=="], + "eciesjs/@noble/ciphers": ["@noble/ciphers@1.3.0", "", {}, "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw=="], "eciesjs/@noble/hashes": ["@noble/hashes@1.8.0", "", {}, "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A=="],