add persistance for auth
This commit is contained in:
parent
8ebf1e044e
commit
18c96302e2
2 changed files with 4 additions and 0 deletions
|
@ -2,8 +2,10 @@ import { betterAuth } from "better-auth";
|
|||
import { genericOAuth } from "better-auth/plugins";
|
||||
import { createAuthClient } from "better-auth/solid";
|
||||
import { genericOAuthClient } from "better-auth/client/plugins";
|
||||
import Database from "better-sqlite3";
|
||||
|
||||
export const auth = betterAuth({
|
||||
database: Database('auth.sqlite'),
|
||||
appName: "Streamarr",
|
||||
basePath: "/api/auth",
|
||||
logger: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue