Skip to content

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

Open
@yasuomang

Description

@yasuomang

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.

Activity

added
bugSomething isn't working
triageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
on Mar 7, 2025
xgbnl

xgbnl commented on Mar 8, 2025

@xgbnl

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

yasuomang

yasuomang commented on Mar 10, 2025

@yasuomang
Author

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

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

xgbnl

xgbnl commented on Mar 10, 2025

@xgbnl

你的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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @xgbnl@yasuomang

        Issue actions

          Incorrect URL in SignIn button on error page in NextAuth v5 · Issue #12740 · nextauthjs/next-auth