chore: remove bun.lock file, update package.json for workspace configuration, and adjust dependencies across apps and packages
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createAuthClient } from "better-auth/svelte";
|
||||
import { createAuthClient } from "better-auth/client";
|
||||
import { convexClient } from "@convex-dev/better-auth/client/plugins";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: "http://localhost:5173",
|
||||
plugins: [convexClient()],
|
||||
});
|
||||
|
||||
@@ -3,11 +3,16 @@
|
||||
import Sidebar from "$lib/components/Sidebar.svelte";
|
||||
import { PUBLIC_CONVEX_URL } from "$env/static/public";
|
||||
import { setupConvex } from "convex-svelte";
|
||||
import { createSvelteAuthClient } from "@mmailaender/convex-better-auth-svelte/svelte";
|
||||
import { authClient } from "$lib/auth";
|
||||
// import { createSvelteAuthClient } from "@mmailaender/convex-better-auth-svelte/svelte";
|
||||
// import { authClient } from "$lib/auth";
|
||||
|
||||
const { children } = $props();
|
||||
createSvelteAuthClient({ authClient });
|
||||
|
||||
// Configurar Convex para usar o backend local
|
||||
setupConvex(PUBLIC_CONVEX_URL);
|
||||
|
||||
// Configurar cliente de autenticação
|
||||
// createSvelteAuthClient({ authClient });
|
||||
</script>
|
||||
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user