Files
better-auth/examples/svelte-kit-example/src/lib/auth-client.ts
2024-09-25 23:39:30 +03:00

7 lines
190 B
TypeScript

import { createAuthClient } from "better-auth/svelte";
export const client = createAuthClient({
baseURL: "http://localhost:3000",
});
export const { signIn, signUp, useSession } = client;