Skip to content

Conversation

mfts
Copy link
Owner

@mfts mfts commented Oct 14, 2025

Normalize URL origins in isValidVerificationUrl to fix a login verification loop.

The previous comparison urlObj.origin !== process.env.NEXTAUTH_URL failed when process.env.NEXTAUTH_URL included a trailing slash, as urlObj.origin never has one. This mismatch caused the verification to fail and users to get stuck in a login loop. The fix ensures both URLs are normalized to their origin before comparison.


Slack Thread

Open in Cursor Open in Web

Copy link

cursor bot commented Oct 14, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Copy link

vercel bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
papermark Ready Ready Preview Comment Oct 14, 2025 11:41am

Copy link
Contributor

coderabbitai bot commented Oct 14, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants