feat: two-factor sign-in, required for sensitive permissions
Better Auth's twoFactor plugin: an authenticator app (TOTP) with 10 backup codes. Turning it on, making new backup codes and turning it off are on the account page, and signing in asks for a code once it's on. Sensitive permissions (product:remove, person:ban, person:role, settings:edit, catalog:suspend, ...) answer 403 two_factor_required without it, API tokens included; the console reminds people who need it. Better Auth's own admin endpoints are closed (404). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
69c55a72fb
commit
d5bc792190
28 files changed
+4365
-62
No files matched your search
@@ -12,6 +12,7 @@ import { AgeCard } from "./age-card";
|
||||
import { ChallengeCard } from "./challenge-card";
|
||||
import { LinkCard } from "./link-card";
|
||||
import { TokensCard } from "./tokens-card";
|
||||
import { TwoFactorCard } from "./two-factor-card";
|
||||
|
||||
export const metadata: Metadata = { title: "Account" };
|
||||
|
||||
@@ -122,6 +123,8 @@ export default async function Account({ searchParams }: { searchParams: Promise<
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<TwoFactorCard enabled={account.twoFactor.enabled} neededFor={account.twoFactor.neededFor} />
|
||||
|
||||
<TokensCard data={tokens} />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,291 @@
|
||||
"use client";
|
||||
// Two-factor sign-in on the account page: turning it on (scan a code into an authenticator app, keep the backup codes,
|
||||
// confirm with a code), new backup codes, and turning it off. Sensitive permissions need it on.
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { renderSVG } from "uqr";
|
||||
import { CopyButton } from "@/components/copy-button";
|
||||
import { ErrorText } from "@/components/forms";
|
||||
import { Tag } from "@/components/status";
|
||||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { authClient } from "@/lib/auth-client";
|
||||
|
||||
type Stage =
|
||||
| { kind: "idle" }
|
||||
| { kind: "password"; then: "enable" | "codes" | "disable" }
|
||||
| { kind: "setup"; uri: string; codes: string[] }
|
||||
| { kind: "codes"; codes: string[] };
|
||||
|
||||
export function TwoFactorCard({
|
||||
enabled,
|
||||
neededFor,
|
||||
}: {
|
||||
enabled: boolean;
|
||||
neededFor: string[];
|
||||
}) {
|
||||
const router = useRouter();
|
||||
const [stage, setStage] = useState<Stage>({ kind: "idle" });
|
||||
const [error, setError] = useState("");
|
||||
const [pending, setPending] = useState(false);
|
||||
|
||||
async function run(fn: () => Promise<string | void>) {
|
||||
setError("");
|
||||
setPending(true);
|
||||
const failed = await fn();
|
||||
if (failed) setError(failed);
|
||||
setPending(false);
|
||||
}
|
||||
|
||||
async function withPassword(
|
||||
then: "enable" | "codes" | "disable",
|
||||
password: string,
|
||||
) {
|
||||
if (then === "enable") {
|
||||
const { data, error } = await authClient.twoFactor.enable({ password });
|
||||
if (error || !data || !("totpURI" in data) || !data.totpURI)
|
||||
return error?.message ?? "That didn't work. Try again.";
|
||||
setStage({
|
||||
kind: "setup",
|
||||
uri: data.totpURI,
|
||||
codes: data.backupCodes ?? [],
|
||||
});
|
||||
} else if (then === "codes") {
|
||||
const { data, error } = await authClient.twoFactor.generateBackupCodes({
|
||||
password,
|
||||
});
|
||||
if (error || !data)
|
||||
return error?.message ?? "That didn't work. Try again.";
|
||||
setStage({ kind: "codes", codes: data.backupCodes });
|
||||
} else {
|
||||
const { error } = await authClient.twoFactor.disable({ password });
|
||||
if (error) return error.message ?? "That didn't work. Try again.";
|
||||
setStage({ kind: "idle" });
|
||||
router.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
async function confirm(code: string) {
|
||||
const { error } = await authClient.twoFactor.verifyTotp({
|
||||
code: code.replace(/\s+/g, ""),
|
||||
});
|
||||
if (error) return error.message ?? "That code didn't work. Try again.";
|
||||
setStage({ kind: "idle" });
|
||||
router.refresh();
|
||||
}
|
||||
|
||||
const submitTo =
|
||||
(fn: (form: FormData) => Promise<string | void>) =>
|
||||
(e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
const form = new FormData(e.currentTarget);
|
||||
void run(() => fn(form));
|
||||
};
|
||||
|
||||
return (
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="flex items-center gap-2">
|
||||
Two-Factor Sign-In {enabled && <Tag tone="strong">on</Tag>}
|
||||
</CardTitle>
|
||||
<CardDescription>
|
||||
Signing in asks for a code from an authenticator app on your phone as
|
||||
well as your password.
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-4">
|
||||
{!enabled && neededFor.length > 0 && stage.kind !== "setup" && (
|
||||
<Alert>
|
||||
<AlertTitle>Turn this on to use everything you can do</AlertTitle>
|
||||
<AlertDescription>
|
||||
<span>
|
||||
These need it:{" "}
|
||||
{neededFor.map((p, i) => (
|
||||
<span key={p}>
|
||||
{i > 0 && ", "}
|
||||
<span className="font-mono text-xs">{p}</span>
|
||||
</span>
|
||||
))}
|
||||
.
|
||||
</span>
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
{stage.kind === "idle" &&
|
||||
(enabled ? (
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={() => setStage({ kind: "password", then: "codes" })}
|
||||
>
|
||||
New backup codes
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={() => setStage({ kind: "password", then: "disable" })}
|
||||
>
|
||||
Turn off
|
||||
</Button>
|
||||
</div>
|
||||
) : (
|
||||
<Button
|
||||
onClick={() => setStage({ kind: "password", then: "enable" })}
|
||||
>
|
||||
Turn on
|
||||
</Button>
|
||||
))}
|
||||
|
||||
{stage.kind === "password" && (
|
||||
<form
|
||||
onSubmit={submitTo((f) =>
|
||||
withPassword(stage.then, String(f.get("password"))),
|
||||
)}
|
||||
className="space-y-3"
|
||||
>
|
||||
<p className="text-sm">
|
||||
{stage.then === "disable"
|
||||
? neededFor.length > 0
|
||||
? "Turning it off stops the things listed above working until you turn it on again. Enter your password."
|
||||
: "Enter your password to turn it off."
|
||||
: stage.then === "codes"
|
||||
? "Your old backup codes stop working. Enter your password."
|
||||
: "Enter your password to start."}
|
||||
</p>
|
||||
<div className="flex max-w-md flex-wrap gap-2">
|
||||
<Input
|
||||
name="password"
|
||||
type="password"
|
||||
autoComplete="current-password"
|
||||
required
|
||||
autoFocus
|
||||
aria-label="Password"
|
||||
className="max-w-xs"
|
||||
/>
|
||||
<Button
|
||||
type="submit"
|
||||
variant={stage.then === "disable" ? "destructive" : "default"}
|
||||
disabled={pending}
|
||||
>
|
||||
{pending
|
||||
? "Checking…"
|
||||
: stage.then === "disable"
|
||||
? "Turn off"
|
||||
: "Continue"}
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
onClick={() => setStage({ kind: "idle" })}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
)}
|
||||
|
||||
{stage.kind === "setup" && (
|
||||
<div className="space-y-4">
|
||||
<ol className="list-decimal space-y-4 pl-5 text-sm">
|
||||
<li className="space-y-2">
|
||||
<p>
|
||||
Scan this with an authenticator app (such as Google
|
||||
Authenticator, Microsoft Authenticator or 1Password).
|
||||
</p>
|
||||
<div
|
||||
className="w-44 rounded-md bg-white p-2 [&>svg]:h-auto [&>svg]:w-full"
|
||||
role="img"
|
||||
aria-label="QR code for your authenticator app"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: renderSVG(stage.uri, { border: 1 }),
|
||||
}}
|
||||
/>
|
||||
<p className="text-muted-foreground">
|
||||
Or enter this key:{" "}
|
||||
<code className="font-mono text-xs break-all text-foreground">
|
||||
{new URL(stage.uri).searchParams.get("secret")}
|
||||
</code>
|
||||
</p>
|
||||
</li>
|
||||
<li className="space-y-2">
|
||||
<p>
|
||||
Keep these backup codes somewhere safe. Each signs you in once
|
||||
if you lose your phone.
|
||||
</p>
|
||||
<BackupCodes codes={stage.codes} />
|
||||
</li>
|
||||
<li className="space-y-2">
|
||||
<p>Enter the code the app shows.</p>
|
||||
<form
|
||||
onSubmit={submitTo((f) => confirm(String(f.get("code"))))}
|
||||
className="flex max-w-md flex-wrap gap-2"
|
||||
>
|
||||
<Input
|
||||
name="code"
|
||||
required
|
||||
inputMode="numeric"
|
||||
pattern="\s*[0-9]{6}\s*"
|
||||
maxLength={8}
|
||||
autoComplete="one-time-code"
|
||||
aria-label="Code"
|
||||
placeholder="123456"
|
||||
className="w-32 font-mono"
|
||||
/>
|
||||
<Button type="submit" disabled={pending}>
|
||||
{pending ? "Checking…" : "Turn on"}
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
onClick={() => setStage({ kind: "idle" })}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
</form>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{stage.kind === "codes" && (
|
||||
<div className="space-y-2 text-sm">
|
||||
<p>
|
||||
Your new backup codes. Keep them somewhere safe: they won't
|
||||
be shown again.
|
||||
</p>
|
||||
<BackupCodes codes={stage.codes} />
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={() => setStage({ kind: "idle" })}
|
||||
>
|
||||
Done
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{error && <ErrorText>{error}</ErrorText>}
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function BackupCodes({ codes }: { codes: string[] }) {
|
||||
return (
|
||||
<div className="flex flex-wrap items-start gap-3">
|
||||
<ul className="grid grid-cols-2 gap-x-6 gap-y-1 rounded-md bg-muted px-3 py-2 font-mono text-xs">
|
||||
{codes.map((c) => (
|
||||
<li key={c}>{c}</li>
|
||||
))}
|
||||
</ul>
|
||||
<CopyButton text={codes.join("\n")} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,7 +1,16 @@
|
||||
import Link from "next/link";
|
||||
import { notFound, redirect } from "next/navigation";
|
||||
import { cache } from "react";
|
||||
import { NavLink } from "@/components/header-client";
|
||||
import { api, getMe, isModerator, unwrap, type ConsoleData, type Person } from "@/lib/api";
|
||||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||
import {
|
||||
api,
|
||||
getMe,
|
||||
isModerator,
|
||||
unwrap,
|
||||
type ConsoleData,
|
||||
type Person,
|
||||
} from "@/lib/api";
|
||||
|
||||
/** The signed-in moderator, or off to sign in; others get not found (these pages aren't for them). */
|
||||
export async function requireModerator(path: string): Promise<Person> {
|
||||
@@ -22,7 +31,9 @@ const loadConsole = cache(async (): Promise<ConsoleData | undefined> => {
|
||||
* The signed-in person and their console, or off to sign in. People who manage nothing get not found: the console
|
||||
* is for those controlling a product, catalog or room.
|
||||
*/
|
||||
export async function requireConsole(path: string): Promise<{ me: Person; console: ConsoleData }> {
|
||||
export async function requireConsole(
|
||||
path: string,
|
||||
): Promise<{ me: Person; console: ConsoleData }> {
|
||||
const me = await getMe();
|
||||
if (!me) redirect(`/signin?next=${encodeURIComponent(path)}`);
|
||||
const data = await loadConsole();
|
||||
@@ -43,18 +54,43 @@ const tabs: { section: Section; href: string; label: string }[] = [
|
||||
{ section: "audit", href: "/console/audit", label: "Audit" },
|
||||
];
|
||||
|
||||
/** The console's sections this person may see. */
|
||||
/** The console's sections this person may see, and a reminder when sensitive actions need two-factor sign-in. */
|
||||
export async function ConsoleNav() {
|
||||
const sections = new Set<Section>((await loadConsole())?.sections ?? ["overview"]);
|
||||
const data = await loadConsole();
|
||||
const sections = new Set<Section>(data?.sections ?? ["overview"]);
|
||||
const needed = data?.twoFactorNeededFor ?? [];
|
||||
return (
|
||||
<nav className="mb-8 flex gap-1 border-b pb-3 text-sm">
|
||||
{tabs
|
||||
.filter((t) => sections.has(t.section))
|
||||
.map((t) => (
|
||||
<NavLink key={t.section} href={t.href} exact={t.section === "overview"}>
|
||||
{t.label}
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
<>
|
||||
{needed.length > 0 && (
|
||||
<Alert className="mb-6">
|
||||
<AlertTitle>Turn on two-factor sign-in</AlertTitle>
|
||||
<AlertDescription>
|
||||
<span>
|
||||
Some of what you can do here needs it ({needed.join(", ")}).{" "}
|
||||
<Link
|
||||
href="/account"
|
||||
className="text-foreground underline underline-offset-4"
|
||||
>
|
||||
Turn it on in your account
|
||||
</Link>
|
||||
.
|
||||
</span>
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
)}
|
||||
<nav className="mb-8 flex gap-1 border-b pb-3 text-sm">
|
||||
{tabs
|
||||
.filter((t) => sections.has(t.section))
|
||||
.map((t) => (
|
||||
<NavLink
|
||||
key={t.section}
|
||||
href={t.href}
|
||||
exact={t.section === "overview"}
|
||||
>
|
||||
{t.label}
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -36,6 +36,7 @@ export default async function PersonPage({ params }: { params: Promise<{ id: str
|
||||
</span>
|
||||
{person.banned && <Tag tone="danger">banned: {person.banReason}</Tag>}
|
||||
{!person.approved && <Tag tone="strong">waiting for approval</Tag>}
|
||||
{person.twoFactor && <Tag>two-factor on</Tag>}
|
||||
</span>
|
||||
</PageHeader>
|
||||
<ConsoleNav />
|
||||
|
||||
@@ -65,7 +65,12 @@ export default async function People({
|
||||
{p.username}
|
||||
</Link>
|
||||
</TableCell>
|
||||
<TableCell className="capitalize">{p.role}</TableCell>
|
||||
<TableCell>
|
||||
<span className="capitalize">{p.role}</span>
|
||||
{p.role !== "user" && !p.twoFactor && (
|
||||
<span className="ml-2 text-xs text-muted-foreground">no two-factor</span>
|
||||
)}
|
||||
</TableCell>
|
||||
<TableCell className="tabular-nums">{p.linkCap}</TableCell>
|
||||
<TableCell className="text-muted-foreground">
|
||||
<DateTime iso={p.createdAt} dateOnly />
|
||||
|
||||
@@ -4,30 +4,56 @@ import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { ErrorText } from "@/components/forms";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Field, FieldDescription, FieldGroup, FieldLabel } from "@/components/ui/field";
|
||||
import {
|
||||
Field,
|
||||
FieldDescription,
|
||||
FieldGroup,
|
||||
FieldLabel,
|
||||
} from "@/components/ui/field";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { authClient } from "@/lib/auth-client";
|
||||
|
||||
/** Signs in with Better Auth, then goes to next (already checked to be a path on this site). */
|
||||
/** Signs in with Better Auth (then a code, if two-factor sign-in is on), then goes to next (already checked to be a
|
||||
* path on this site). */
|
||||
export function SignInForm({ next }: { next: string }) {
|
||||
const router = useRouter();
|
||||
const [error, setError] = useState("");
|
||||
const [pending, setPending] = useState(false);
|
||||
// After the password, when two-factor sign-in is on: a code from the app, or a backup code.
|
||||
const [step, setStep] = useState<"password" | "code" | "backup">("password");
|
||||
|
||||
const done = () => {
|
||||
router.push(next);
|
||||
router.refresh();
|
||||
};
|
||||
|
||||
async function signIn(form: FormData) {
|
||||
const { data, error } = await authClient.signIn.username({
|
||||
username: String(form.get("username")),
|
||||
password: String(form.get("password")),
|
||||
});
|
||||
if (error) return setError(error.message ?? "That didn't work. Try again.");
|
||||
if (data && "twoFactorRedirect" in data && data.twoFactorRedirect)
|
||||
return setStep("code");
|
||||
done();
|
||||
}
|
||||
|
||||
async function verify(form: FormData) {
|
||||
const code = String(form.get("code")).replace(/\s+/g, "");
|
||||
const { error } =
|
||||
step === "code"
|
||||
? await authClient.twoFactor.verifyTotp({ code })
|
||||
: await authClient.twoFactor.verifyBackupCode({ code });
|
||||
if (error)
|
||||
return setError(error.message ?? "That code didn't work. Try again.");
|
||||
done();
|
||||
}
|
||||
|
||||
async function submit(form: FormData) {
|
||||
setError("");
|
||||
setPending(true);
|
||||
const { error } = await authClient.signIn.username({
|
||||
username: String(form.get("username")),
|
||||
password: String(form.get("password")),
|
||||
});
|
||||
if (error) {
|
||||
setError(error.message ?? "That didn't work. Try again.");
|
||||
setPending(false);
|
||||
return;
|
||||
}
|
||||
router.push(next);
|
||||
router.refresh();
|
||||
await (step === "password" ? signIn(form) : verify(form));
|
||||
setPending(false);
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -37,25 +63,84 @@ export function SignInForm({ next }: { next: string }) {
|
||||
void submit(new FormData(e.currentTarget));
|
||||
}}
|
||||
>
|
||||
<FieldGroup>
|
||||
<Field>
|
||||
<FieldLabel htmlFor="username">Username</FieldLabel>
|
||||
<Input id="username" name="username" autoComplete="username" required autoFocus />
|
||||
</Field>
|
||||
<Field>
|
||||
<FieldLabel htmlFor="password">Password</FieldLabel>
|
||||
<Input id="password" name="password" type="password" autoComplete="current-password" required />
|
||||
</Field>
|
||||
{error && <ErrorText>{error}</ErrorText>}
|
||||
<Field>
|
||||
<Button type="submit" disabled={pending}>
|
||||
{pending ? "Signing in…" : "Sign in"}
|
||||
</Button>
|
||||
<FieldDescription className="text-center">
|
||||
No account? <Link href="/signup">Create one</Link>
|
||||
</FieldDescription>
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
{step === "password" ? (
|
||||
<FieldGroup>
|
||||
<Field>
|
||||
<FieldLabel htmlFor="username">Username</FieldLabel>
|
||||
<Input
|
||||
id="username"
|
||||
name="username"
|
||||
autoComplete="username"
|
||||
required
|
||||
autoFocus
|
||||
/>
|
||||
</Field>
|
||||
<Field>
|
||||
<FieldLabel htmlFor="password">Password</FieldLabel>
|
||||
<Input
|
||||
id="password"
|
||||
name="password"
|
||||
type="password"
|
||||
autoComplete="current-password"
|
||||
required
|
||||
/>
|
||||
</Field>
|
||||
{error && <ErrorText>{error}</ErrorText>}
|
||||
<Field>
|
||||
<Button type="submit" disabled={pending}>
|
||||
{pending ? "Signing in…" : "Sign in"}
|
||||
</Button>
|
||||
<FieldDescription className="text-center">
|
||||
No account? <Link href="/signup">Create one</Link>
|
||||
</FieldDescription>
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
) : (
|
||||
<FieldGroup key={step}>
|
||||
<Field>
|
||||
<FieldLabel htmlFor="code">
|
||||
{step === "code"
|
||||
? "Code from your authenticator app"
|
||||
: "Backup code"}
|
||||
</FieldLabel>
|
||||
<Input
|
||||
id="code"
|
||||
name="code"
|
||||
required
|
||||
autoFocus
|
||||
autoComplete="one-time-code"
|
||||
{...(step === "code"
|
||||
? {
|
||||
inputMode: "numeric",
|
||||
pattern: "\\s*[0-9]{6}\\s*",
|
||||
maxLength: 8,
|
||||
}
|
||||
: { maxLength: 32 })}
|
||||
className="font-mono"
|
||||
/>
|
||||
</Field>
|
||||
{error && <ErrorText>{error}</ErrorText>}
|
||||
<Field>
|
||||
<Button type="submit" disabled={pending}>
|
||||
{pending ? "Checking…" : "Sign in"}
|
||||
</Button>
|
||||
<FieldDescription className="text-center">
|
||||
<button
|
||||
type="button"
|
||||
className="underline underline-offset-4"
|
||||
onClick={() => {
|
||||
setError("");
|
||||
setStep(step === "code" ? "backup" : "code");
|
||||
}}
|
||||
>
|
||||
{step === "code"
|
||||
? "Use a backup code instead"
|
||||
: "Use your authenticator app instead"}
|
||||
</button>
|
||||
</FieldDescription>
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
)}
|
||||
</form>
|
||||
);
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
// Better Auth in the browser: sign-up, sign-in and sign-out. Its requests go to /api/auth on this site, which Next
|
||||
// rewrites to the API, so the session cookie is set for this site.
|
||||
// Better Auth in the browser: sign-up, sign-in (with a two-factor code when it's on), sign-out, and two-factor setup.
|
||||
// Its requests go to /api/auth on this site, which Next rewrites to the API, so the session cookie is set for this site.
|
||||
"use client";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
import { usernameClient } from "better-auth/client/plugins";
|
||||
import { twoFactorClient, usernameClient } from "better-auth/client/plugins";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: typeof window === "undefined" ? undefined : window.location.origin,
|
||||
plugins: [usernameClient()],
|
||||
plugins: [usernameClient(), twoFactorClient()],
|
||||
});
|
||||
@@ -19,7 +19,8 @@
|
||||
"next": "16.4.3",
|
||||
"react": "19.3.1",
|
||||
"react-dom": "19.3.1",
|
||||
"server-only": "^0.0.1"
|
||||
"server-only": "^0.0.1",
|
||||
"uqr": "^0.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4.3.3",
|
||||
|
||||
Reference in new issue
Block a user