Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@auth/core

Package Overview
Dependencies
Maintainers
2
Versions
101
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-159ab8c31 to 0.0.0-fbf6d5992

4

lib/routes/callback.js

@@ -16,4 +16,4 @@ import { handleLogin } from "../callback-handler.js";

let randomState;
if (provider.redirectProxy) {
const state = decodeState(query?.state);
if (provider.redirectProxy && query?.state) {
const state = decodeState(query.state);
randomState = state?.random;

@@ -20,0 +20,0 @@ // TODO: verify that redirect is safe

@@ -70,3 +70,3 @@ import { parse as parseCookie, serialize } from "cookie";

headers.set("Set-Cookie", cookieHeader);
headers.set("Set-Cookie", cookieHeader); // TODO: Remove. Seems to be a bug with Headers in the runtime
// headers.set("Set-Cookie", cookieHeader) // TODO: Remove. Seems to be a bug with Headers in the runtime
});

@@ -73,0 +73,0 @@ let body = res.body;

{
"name": "@auth/core",
"version": "0.0.0-159ab8c31",
"version": "0.0.0-fbf6d5992",
"description": "Authentication for the Web.",

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

@@ -49,5 +49,5 @@ import { handleLogin } from "../callback-handler.js"

if (provider.redirectProxy) {
if (provider.redirectProxy && query?.state) {
const state = decodeState<{ origin: string; random: string }>(
query?.state
query.state
)

@@ -54,0 +54,0 @@

@@ -81,3 +81,3 @@ import { parse as parseCookie, serialize } from "cookie"

else headers.set("Set-Cookie", cookieHeader)
headers.set("Set-Cookie", cookieHeader) // TODO: Remove. Seems to be a bug with Headers in the runtime
// headers.set("Set-Cookie", cookieHeader) // TODO: Remove. Seems to be a bug with Headers in the runtime
})

@@ -84,0 +84,0 @@

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