We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc0912c commit f329102Copy full SHA for f329102
packages/next-auth/src/utils/node.ts
@@ -44,7 +44,7 @@ export function getURL(
44
45
if (!host) throw new TypeError("Invalid host")
46
47
- return new URL(url ?? "", new URL(host))
+ return new URL(`${host}${url ?? ""}`)
48
} catch (error) {
49
return error as Error
50
}
0 commit comments