Add better-auth integration and update dependencies in package.json and bun.lock

This commit is contained in:
2025-10-22 15:13:34 -03:00
parent 9f251b1bc4
commit 577261bf67
22 changed files with 2592 additions and 6 deletions

6
apps/web/src/lib/auth.ts Normal file
View File

@@ -0,0 +1,6 @@
import { createAuthClient } from "better-auth/svelte";
import { convexClient } from "@convex-dev/better-auth/client/plugins";
export const authClient = createAuthClient({
plugins: [convexClient()],
});

View File

@@ -0,0 +1,3 @@
import { createSvelteKitHandler } from "@mmailaender/convex-better-auth-svelte/sveltekit";
export const { GET, POST } = createSvelteKitHandler();