add persistance for auth

This commit is contained in:
Chris Kruining 2025-05-14 13:52:08 +02:00
parent 8ebf1e044e
commit 18c96302e2
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 4 additions and 0 deletions

View file

@ -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: {