-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V5 signin()
throws error when using redirect: false
#9279
Comments
This PR seems to have tried to fix an issue with constructing the error URL: But next-auth/packages/next-auth/src/lib/client.ts Lines 160 to 167 in 656c0cd
|
PR ^ contains fix for this issue. |
I am getting this same issue but with credentials provider instead of email. Already have latest beta update and still not working. Note that I am using signIn from "next-auth/react" instead of exporting it from my auth.config.ts file since it throws an error from webpack. |
When the next beta release is planed? |
same issue |
Same issue here with credentials provider... |
Same issue 👍 |
Having same issue :-( |
Same issue for me too! |
Same. |
Same issue! When will this make it to the next version? |
Would also like to get a new beta release ASAP for next-auth. Currently waiting for this one, since patching it out locally is quite tedious.... |
Same issue |
I'll unsubscribe myself from this thread but can we please just thumbs-up the issue or PR instead of commenting "same" |
From authjs.dev's docs. It seems handling the formdata server side is the given solution: Hopefully a fix for client side to properly handle errors will come later |
i have encounter same issue.. any update on this? |
same issue... did you guys manage to find a solution? |
beta5 includes the patch |
I fixed this by upgrading to |
TypeError: Failed to construct 'URL': Invalid base URL at signIn (react.js:173:19) at async onSubmit (LoginForm.tsx:48:7) at async eval (index.esm.mjs:2068:21) https://github.com/nextauthjs/next-auth/issues/9279\#issuecomment-1906282232 동일한 에러로 해결한 사람의 이슈 댓글 발견하여 에러 해결
Same issue here with credentials provider. |
Provider type
Email
Environment
System:
OS: macOS 14.1.1
CPU: (8) arm64 Apple M1 Pro
Memory: 872.53 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v18.18.2/bin/npm
bun: 1.0.14 - ~/.bun/bin/bun
Watchman: 2023.11.20.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 119.0.6045.199
Safari: 17.1
Reproduction URL
https://github.com/nextauthjs/next-auth-example
Describe the issue
In
"next-auth": "5.0.0-beta.4"
thesignIn()
withredirect: false
throws the following error on the client side:How to reproduce
Install:
Run:
Expected behavior
Should not throw error
The text was updated successfully, but these errors were encountered: