fix(auth): prevent login page freeze on OAuth sign-in failure (#506)

Co-authored-by: Jason Woltje <[email protected]>
Co-committed-by: Jason Woltje <[email protected]>
This commit is contained in:
2026-02-25 01:59:36 +00:00
committed by jason.woltje
parent 9a7673bea2
commit 5f6c520a98
3 changed files with 37 additions and 6 deletions
+4
View File
@@ -254,6 +254,10 @@ export function createAuth(prisma: PrismaClient) {
enabled: true,
},
plugins: [...getOidcPlugins()],
logger: {
disabled: false,
level: "error",
},
session: {
expiresIn: 60 * 60 * 24 * 7, // 7 days absolute max
updateAge: 60 * 60 * 2, // 2 hours — minimum session age before BetterAuth refreshes the expiry on next request