This commit is contained in:
hailin 2025-06-15 15:27:02 +08:00
parent 7bf90733d5
commit 2ce8eb2e7a
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ export const {
// ✅ 加这一行,信任所有 Host彻底解决动态部署报错问题
trustHost: true,
// ✅ 加这一行,防止缺失 secret 报错
secret: 'hardcoded-super-secret-key-please-change',
callbacks: {
async jwt({ token, profile }) {
if (profile?.id) {