Files
portal/src/lib/auth-client.ts
T
NeilClack ef855ae9a9 Init Project
This is a pretty far-developed starting point. Authentication has been intialized with Better-Auth, a database has been setup with Prisma, and Google + email logins have been enabled, as well as Google + Email registration.
2026-01-13 16:21:12 -06:00

9 lines
221 B
TypeScript

import { createAuthClient } from "better-auth/svelte"
export const authClient = createAuthClient({});
const signIn = async () => {
const data = await authClient.signIn.social({
provider: "google",
});
};