fix: resolve OAuth redirect_uri error - Add URL validation and cleanup in auth config - Create environment variable check script - Add OAuth setup guide documentation

This commit is contained in:
theshy
2025-08-01 20:14:23 +08:00
parent 8940101f8d
commit da41306918
4 changed files with 211 additions and 1 deletions

View File

@ -2,7 +2,8 @@
DATABASE_URL="file:./dev.db"
# NextAuth.js
NEXTAUTH_URL="http://localhost:3000"
# 重要:确保 URL 不包含多余的引号,格式应为:https://your-domain.com
NEXTAUTH_URL="https://recorder.zyj.best"
NEXTAUTH_SECRET="your-nextauth-secret"
# Google OAuth