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

@workos-inc/authkit-nextjs

Package Overview
Dependencies
Maintainers
7
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workos-inc/authkit-nextjs - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

5

dist/cjs/session.js

@@ -29,2 +29,3 @@ "use strict";

newRequestHeaders.set(middlewareHeaderName, 'true');
newRequestHeaders.delete(sessionHeaderName);
// If no session, just continue

@@ -73,3 +74,5 @@ if (!session) {

console.warn('Failed to refresh', e);
const response = server_1.NextResponse.next();
const response = server_1.NextResponse.next({
request: { headers: newRequestHeaders },
});
response.cookies.delete(cookie_js_1.cookieName);

@@ -76,0 +79,0 @@ return response;

2

package.json
{
"name": "@workos-inc/authkit-nextjs",
"version": "0.4.1",
"version": "0.4.2",
"description": "Authentication and session helpers for using WorkOS & AuthKit with Next.js",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -33,2 +33,4 @@ import { redirect } from 'next/navigation';

newRequestHeaders.delete(sessionHeaderName);
// If no session, just continue

@@ -81,3 +83,5 @@ if (!session) {

console.warn('Failed to refresh', e);
const response = NextResponse.next();
const response = NextResponse.next({
request: { headers: newRequestHeaders },
});
response.cookies.delete(cookieName);

@@ -84,0 +88,0 @@ return response;

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