Skip to content
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

Incorrect URL in SignIn button on error page in NextAuth v5 #12740

Open
yasuomang opened this issue Mar 7, 2025 · 3 comments
Open

Incorrect URL in SignIn button on error page in NextAuth v5 #12740

yasuomang opened this issue Mar 7, 2025 · 3 comments
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@yasuomang
Copy link

yasuomang commented Mar 7, 2025

Environment

"react": "18.2.0",
"next-auth": "5.0.0-beta.22",
"next": "^14.2.15",

Reproduction URL

https://github.com/yasuomang/next-auth-bug

Describe the issue

Image

I checked the source code and found that there's an issue with this URL.

Image

How to reproduce

  1. Click the expired magic link
  2. Click signin button

Expected behavior

Just link to /auth/signin or pages: { signIn: "http://localhost:3000/signin", }, if I set the pages.

@yasuomang yasuomang added bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Mar 7, 2025
@xgbnl
Copy link

xgbnl commented Mar 8, 2025

你的auth.js里的pages路径要置为绝对路径才行,有i18n国际化要加:lang

@yasuomang
Copy link
Author

你的auth.js里的pages路径要置为绝对路径才行,有i18n国际化要加:lang

我不配置pages,使用默认的配置也是有问题的呢。应该是代码的bug

@xgbnl
Copy link

xgbnl commented Mar 10, 2025

你的auth.js里的pages路径要置为绝对路径才行,有i18n国际化要加:lang

我不配置pages,使用默认的配置也是有问题的呢。应该是代码的bug

没这么玩,有错误,我直接抛异常在登录页用弹窗展示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants