@auth/core
Advanced tools
Comparing version 0.28.1 to 0.28.2
@@ -66,3 +66,4 @@ import { MissingSecret } from "../../errors.js"; | ||
const detectedProtocol = headers.get("x-forwarded-proto") ?? protocol ?? "https"; | ||
url = new URL(`${detectedProtocol}://${detectedHost}`); | ||
const _protocol = detectedProtocol.endsWith(":") ? detectedProtocol : detectedProtocol + ':'; | ||
url = new URL(`${_protocol}//${detectedHost}`); | ||
} | ||
@@ -69,0 +70,0 @@ // remove trailing slash |
{ | ||
"name": "@auth/core", | ||
"version": "0.28.1", | ||
"version": "0.28.2", | ||
"description": "Authentication for the Web.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -79,4 +79,5 @@ import type { AuthAction, AuthConfig } from "../../types.js" | ||
headers.get("x-forwarded-proto") ?? protocol ?? "https" | ||
url = new URL(`${detectedProtocol}://${detectedHost}`) | ||
const _protocol = detectedProtocol.endsWith(":") ? detectedProtocol : detectedProtocol + ':' | ||
url = new URL(`${_protocol}//${detectedHost}`) | ||
} | ||
@@ -83,0 +84,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1540267
38839