Open-source document signature platform. Not affiliated with DocuSign.
TypeScript
Do not keep refusing sign-ins after the database is migrated
Claude59ebc7cfe151
diff --git a/src/lib/auth/server.ts b/src/lib/auth/server.tsindex 87a91ab..bc1538b 100644--- a/src/lib/auth/server.ts+++ b/src/lib/auth/server.ts@@ -311,6 +311,12 @@ export function createAppAuth({return Array.from(trustedOrigins);},advanced: {+ // The tables are made by this app's own migrations (db/migrations),+ // and the setup page already says so when they are missing. Better+ // Auth's check would add nothing but a failure it remembers for the+ // life of the process: an app that was opened before its database was+ // migrated would refuse every sign-in until it was restarted.+ database: { validateSchema: false },// Where the visitor's address is read from, for rate limits and// sessions: the same headers the rest of the app trusts.ipAddress: { ipAddressHeaders: getClientIpHeaderNames(env) },