unfoldadmin / turbo

Django & Next.js boilerplate
MIT License
180 stars 29 forks source link

Login the front web errors. #4

Closed changwu closed 9 months ago

changwu commented 9 months ago

HIi, I meet the follow errors, when I login the front web after activated the user.

api_1  | [22/Dec/2023 15:44:16] "POST /api/token/ HTTP/1.1" 200 483
web_1  |  ⨯ TypeError: "ikm" must be at least one byte in length
web_1  |     at normalizeIkm (webpack-internal:///(rsc)/../../node_modules/.pnpm/@panva+hkdf@1.1.1/node_modules/@panva/hkdf/dist/node/cjs/index.js:25:32)
web_1  |     at hkdf (webpack-internal:///(rsc)/../../node_modules/.pnpm/@panva+hkdf@1.1.1/node_modules/@panva/hkdf/dist/node/cjs/index.js:46:60)
web_1  |     at getDerivedEncryptionKey (webpack-internal:///(rsc)/../../node_modules/.pnpm/next-auth@4.23.2_next@13.5.4/node_modules/next-auth/jwt/index.js:80:36)
web_1  |     at Object.encode (webpack-internal:///(rsc)/../../node_modules/.pnpm/next-auth@4.23.2_next@13.5.4/node_modules/next-auth/jwt/index.js:34:36)
web_1  |     at Object.callback (webpack-internal:///(rsc)/../../node_modules/.pnpm/next-auth@4.23.2_next@13.5.4/node_modules/next-auth/core/routes/callback.js:356:36)
web_1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
web_1  |     at async AuthHandler (webpack-internal:///(rsc)/../../node_modules/.pnpm/next-auth@4.23.2_next@13.5.4/node_modules/next-auth/core/index.js:298:38)
web_1  |     at async NextAuthRouteHandler (webpack-internal:///(rsc)/../../node_modules/.pnpm/next-auth@4.23.2_next@13.5.4/node_modules/next-auth/next/index.js:50:30)
web_1  |     at async NextAuth._args$ (webpack-internal:///(rsc)/../../node_modules/.pnpm/next-auth@4.23.2_next@13.5.4/node_modules/next-auth/next/index.js:85:24)
web_1  |     at async /app/node_modules/.pnpm/next@13.5.4/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:62361
lukasvinclav commented 9 months ago

@changwu did you set NEXTAUTH_SECRET in .env.frontend?