-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix: 13142 - Replace only the pathname from signin to callback instead of the whole url #13162
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
base: main
Are you sure you want to change the base?
Conversation
Pages are not compatible with 19.x this make sure only one version of react is along the libraries.
Users might use `auth` module and create custom login forms, This allow us to test this workflows.
Instead of replacing any word on the url, replace only pathname. 13142
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@rachirib is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
☕️ Reasoning
There is an edge case where
signin
word might be on the hostname,current code on the
main
branch will override the hostname and break the callback call.This PR intents to solve that by creating a
URL
object out of thestring
then replace thepathname
as required,then return the transformed string back to
url
variable.Additionally the following changes were added:
apps/dev/nextjs
on theapp
router that usesauth
module to signin the userapps/dev/nextjs
forreact
andreact-dom
, current setup triggers auseState(null)
onPage
router pages.🧢 Checklist
🎫 Affected issues
Fixes: #13142
📌 Resources