Skip to content

Commit

Permalink
fix: add missing baseUrl when constructing callback signin url (#9056)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgon authored Nov 7, 2023
1 parent 564d4d7 commit 5c0faa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-auth/src/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export async function signIn<
return
}

const error = new URL(data.url).searchParams.get("error")
const error = new URL(data.url, baseUrl).searchParams.get("error")

if (res.ok) {
await __NEXTAUTH._getSession({ event: "storage" })
Expand Down

1 comment on commit 5c0faa8

@vercel
Copy link

@vercel vercel bot commented on 5c0faa8 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.