feat: Secondary storage (#127)

This commit is contained in:
Bereket Engida
2024-10-09 18:19:40 +03:00
committed by GitHub
parent 529e298448
commit 3817742ce0
12 changed files with 264 additions and 32 deletions

8
docs/lib/auth.ts Normal file
View File

@@ -0,0 +1,8 @@
import { betterAuth } from "better-auth";
import Database from "better-sqlite3";
export const auth = betterAuth({
database: new Database("database.db"),
});
export type Session = typeof auth.$Infer.Session;