@tunaiku.npm/embedded-session-management
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@tunaiku.npm/embedded-session-management", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Session management", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -8,3 +8,6 @@ function isAuthenticated() { | ||
//is json request or accept header is json | ||
if (req.xhr || req.headers.accept.indexOf("json") > -1) { | ||
const headers = req.headers || {}; | ||
const accept = headers.accept || ""; | ||
if (req.xhr || accept.indexOf("json") > -1) { | ||
return res.status(401).json({ | ||
@@ -11,0 +14,0 @@ message: |
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
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
19956
640