Socket
Socket
Sign inDemoInstall

@auth/core

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auth/core - npm Package Compare versions

Comparing version 0.28.1 to 0.28.2

3

lib/utils/env.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc