initial with catppuccin theming

This commit is contained in:
2026-05-04 13:06:18 +01:00
commit a7caf77284
33 changed files with 1398 additions and 0 deletions

16
src/lib/server/auth.ts Normal file
View File

@@ -0,0 +1,16 @@
import { betterAuth } from 'better-auth/minimal';
import { drizzleAdapter } from 'better-auth/adapters/drizzle';
import { sveltekitCookies } from 'better-auth/svelte-kit';
import { env } from '$env/dynamic/private';
import { getRequestEvent } from '$app/server';
import { db } from '$lib/server/db';
export const auth = betterAuth({
baseURL: env.ORIGIN,
secret: env.BETTER_AUTH_SECRET,
database: drizzleAdapter(db, { provider: 'sqlite' }),
emailAndPassword: { enabled: true },
plugins: [
sveltekitCookies(getRequestEvent) // make sure this is the last plugin in the array
]
});