@workos-inc/authkit-nextjs
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -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; |
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
64092
1022
1