Skip to content

Commit f329102

Browse files
fix(core): properly construct url (#5984)
1 parent bc0912c commit f329102

File tree

1 file changed

+1
-1
lines changed
  • packages/next-auth/src/utils

1 file changed

+1
-1
lines changed

packages/next-auth/src/utils/node.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function getURL(
4444

4545
if (!host) throw new TypeError("Invalid host")
4646

47-
return new URL(url ?? "", new URL(host))
47+
return new URL(`${host}${url ?? ""}`)
4848
} catch (error) {
4949
return error as Error
5050
}

0 commit comments

Comments
 (0)