fix: NextAuth 支持多域名登录 (trustHost + production URL)

This commit is contained in:
ZhuiGuangAI Dev
2026-10-02 23:11:05 +08:00
parent 9f08275fc5
commit 638144506b
+1
View File
@@ -25,6 +25,7 @@ function checkLoginRateLimit(email: string): boolean {
} }
export const authOptions = { export const authOptions = {
trustHost: true,
providers: [ providers: [
CredentialsProvider({ CredentialsProvider({
name: "credentials", name: "credentials",