nextauthjs / nextauthjs/next-auth
Incorrect URL in SignIn button on error page in NextAuth v5
Open
Nobody has claimed this yet.
bug
triage
- Dominant language
- TypeScript
- Stars
- 28.4k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
Description
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
I checked the source code and found that there's an issue with this URL.
How to reproduce
- Click the expired magic link
- Click signin button
Expected behavior
Just link to /auth/signin or pages: { signIn: "http://localhost:3000/signin", }, if I set the pages.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction URL and follow the expired magic-link flow described in the issue: click the error-page SignIn button and inspect its destination. Compare that URL with /auth/signin and the configured pages.signIn value; done means the button uses the expected sign-in URL in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, react, typescript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100