Socket
Socket
Sign inDemoInstall

@auth/core

Package Overview
Dependencies
Maintainers
2
Versions
97
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.0.0-380f8d56 to 0.0.0-40f6bf81

2

lib/oauth/callback.js

@@ -79,2 +79,4 @@ import * as checks from "./checks.js";

}
//TODO: remove
logger.debug("Code grant response", await codeGrantResponse.clone().json());
profile = o.getValidatedIdTokenClaims(result);

@@ -81,0 +83,0 @@ tokens = result;

@@ -9,4 +9,7 @@ import type { OAuthConfigInternal } from "../../providers/oauth.js";

randomState: string | undefined;
proxyRedirect?: undefined;
} | {
randomState: string | undefined;
proxyRedirect: string | undefined;
};
//# sourceMappingURL=proxy-redirect.d.ts.map

2

lib/oauth/proxy-redirect.js

@@ -17,3 +17,3 @@ import { InvalidCheck } from "../../errors.js";

if (!state?.origin)
throw new InvalidCheck("Missing origin in state");
return { randomState };
proxyRedirect = `${state.origin}?${new URLSearchParams(query)}`;

@@ -20,0 +20,0 @@ }

{
"name": "@auth/core",
"version": "0.0.0-380f8d56",
"version": "0.0.0-40f6bf81",
"description": "Authentication for the Web.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -141,2 +141,5 @@ import * as checks from "./checks.js"

//TODO: remove
logger.debug("Code grant response", await codeGrantResponse.clone().json())
profile = o.getValidatedIdTokenClaims(result)

@@ -143,0 +146,0 @@ tokens = result

@@ -28,3 +28,3 @@ import { InvalidCheck } from "../../errors.js"

if (isOnRedirectProxy) {
if (!state?.origin) throw new InvalidCheck("Missing origin in state")
if (!state?.origin) return { randomState }
proxyRedirect = `${state.origin}?${new URLSearchParams(query)}`

@@ -31,0 +31,0 @@ }

Sorry, the diff of this file is not supported yet

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