This commit is contained in:
2026-08-24 21:17:56 +02:00
parent 3ac43cd014
commit 7bc0aea1b3
4 changed files with 25 additions and 109 deletions
-4
View File
@@ -1,4 +1,3 @@
import { dash } from '@better-auth/infra';
import { getRequestEvent } from '$app/server';
import { m } from '$lib/paraglide/messages';
import { getConfig } from '$lib/server/config';
@@ -60,7 +59,6 @@ function build() {
},
plugins: [
admin(),
dash(),
genericOAuth({ config: oauthConfig }),
twoFactor({
issuer: m.appname(),
@@ -106,8 +104,6 @@ function build() {
});
}
// ponytail: single-slot cache, rebuilt on config edits via invalidateAuth().
// In-flight rate-limit counters and 2FA flow state reset on invalidation.
let cached: null | ReturnType<typeof build> = null;
export type Auth = ReturnType<typeof build>;