Next-Auth v5 beta not redirecting with credentials login with nextjs 14.2 ? #11168
Unanswered
vishal-kumawat-official
asked this question in
Help
Replies: 2 comments 1 reply
-
i am open for all discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have same problem with nextjs 14.2.4, and next-auth 5.0.0-beta19
and my URL not changed, but page content from dashboard page |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Bug : Nextjs 14 + nextAuth
when i login with google or github login
it redirect me to the /settings page as required
but when i login with credentials then it redirect to /settings page but the url on the browser stills remains /auth/login (default login page)
when i reload the page url changes to /settings page when i needed.
TODO : - i want when i login with credentials it should redirect me to /settings page as was redirecting when github or google providers
i will be happy if you fix :)
"dependencies": {
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
"bcryptjs": "^2.4.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.378.0",
"mongoose": "^8.4.1",
"next": "14.2.3",
"next-auth": "^5.0.0-beta.16",
"next-themes": "^0.3.0",
"react": "^18",
"react-dom": "^18",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
Login Action :-
middleware.ts:-
auth.ts :-
auth.config.ts :-
Beta Was this translation helpful? Give feedback.
All reactions