@bufferapp/session-manager
Advanced tools
Comparing version
@@ -43,3 +43,3 @@ 'use strict'; | ||
requiredSessionKeys.forEach(key => { | ||
if (!_objectPath2.default.has(req.session, key)) { | ||
if (!_objectPath2.default.has(req.session, key) || !req.session[key]) { | ||
allValidKeys = false; | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "@bufferapp/session-manager", | ||
"version": "0.9.0-beta1", | ||
"version": "0.9.0", | ||
"description": "Buffer session manager", | ||
@@ -15,5 +15,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"jsonwebtoken": "8.2.2", | ||
"@bufferapp/micro-rpc-client": "0.1.5", | ||
"jsonwebtoken": "8.2.2", | ||
"object-path": "^0.11.5" | ||
"object-path": "^0.11.8" | ||
}, | ||
@@ -20,0 +20,0 @@ "babel": { |
@@ -37,3 +37,3 @@ import ObjectPath from 'object-path' | ||
requiredSessionKeys.forEach(key => { | ||
if (!ObjectPath.has(req.session, key)) { | ||
if (!ObjectPath.has(req.session, key) || !req.session[key]) { | ||
allValidKeys = false | ||
@@ -40,0 +40,0 @@ } |
const currentWindowUrl = () => window.location.href | ||
const redirectUrl = () => encodeURIComponent(currentWindowUrl()) | ||
@@ -12,3 +11,3 @@ export const loginServiceUrl = ({ production }) => { | ||
export const logoutUrl = ({ production }) => | ||
`${loginServiceUrl({ production })}/logout/?redirect=${redirectUrl()}` | ||
`${loginServiceUrl({ production })}/logout/?redirect=${currentWindowUrl()}` | ||
@@ -15,0 +14,0 @@ // TODO: remove beta '1' version after its been removed |
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
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
23512
-0.1%707
-0.14%Updated