fix: resolve NextAuth UntrustedHost error and add login debugging
- Add trustHost: true to NextAuth configuration - Add console logging for login debugging - Fix authentication issues preventing login redirect
This commit is contained in:
1 parent
46e851bc3a
commit
8c82ce5bad
2 files changed
+7
No files matched your search
@@ -6,6 +6,7 @@ import { eq } from 'drizzle-orm';
|
||||
import bcrypt from 'bcryptjs';
|
||||
|
||||
export const { handlers, signIn, signOut, auth } = NextAuth({
|
||||
trustHost: true,
|
||||
providers: [
|
||||
CredentialsProvider({
|
||||
name: '邮箱密码',
|
||||
|
||||
Reference in new issue
Block a user