feat: Implement Convex authentication including sign-in/sign-up UI, Convex client provider, and backend auth functions.

This commit is contained in:
2026-02-02 16:23:28 +00:00
parent b060e7f008
commit a795e92ef3
15 changed files with 1335 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
"use client";
import { ConvexAuthNextjsProvider } from "@convex-dev/auth/nextjs";
import { ConvexReactClient } from "convex/react";
import { ReactNode } from "react";
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);
export default function ConvexClientProvider({
children,
}: {
children: ReactNode;
}) {
return (
<ConvexAuthNextjsProvider client={convex}>
{children}
</ConvexAuthNextjsProvider>
);
}