mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
feat: Secondary storage (#127)
This commit is contained in:
8
docs/lib/auth.ts
Normal file
8
docs/lib/auth.ts
Normal 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;
|
||||
Reference in New Issue
Block a user