NextAuth doesn't work in NextJS15 app on Azure production. #12548
Unanswered
stsiushkevich
asked this question in
Help
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
System:
OS: Windows 10 10.0.19045
CPU: (4) x64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
Memory: 21.07 GB / 31.96 GB
Binaries:
Node: 20.18.1 - C:\nvm4w\nodejs\node.EXE
npm: 11.0.0 - ~\AppData\Roaming\npm\npm.CMD
Browsers:
Edge: Chromium (131.0.2903.146)
Internet Explorer: 11.0.19041.4355
npmPackages:
next: 15.1.4 => 15.1.4
next-auth: ^4.24.11 => 4.24.11
react: 19.0.0 => 19.0.0
Reproduction URL
https://brave-glacier-05979150f.4.azurestaticapps.net/login
Describe the issue
Hello, guys! I have encountered a strange issue that an application doesn't work on Azure production. Locally all is well. I satisfied all reguired instructions. spent a huge amount of time to figure out, but don't have ideas anymore, please help me to fix it!(
I assigned NEXTAUTH_SECRET and NEXTAUTH_URL, but don't understand why it doesn't work, I cannot open even login page.((
My [...nextauth]/route.js file:
src/app/shared/config/nextAuthConfig.ts
middleware.ts
export { default } from "next-auth/middleware"
login page
Beta Was this translation helpful? Give feedback.
All reactions