New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eazy-auth

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eazy-auth - npm Package Compare versions

Comparing version 0.3.9 to 0.4.0

16

auth/routes/AuthRoute.js

@@ -50,5 +50,3 @@ 'use strict';

return _react2.default.createElement(_reactRouterDom.Redirect, {
to: {
pathname: userRedirectTo
}
to: userRedirectTo
});

@@ -61,7 +59,11 @@ }

// User not authenticated, redirect to login
var to = typeof redirectTo === 'string' ? {
pathname: redirectTo
} : redirectTo;
return _react2.default.createElement(_reactRouterDom.Redirect, {
to: {
pathname: redirectTo,
state: rememberReferrer && !auth.logoutFromPermission ? { referrer: props.location } : undefined
}
to: _extends({}, to, {
state: _extends({}, to.state, {
referrer: rememberReferrer && !auth.logoutFromPermission ? props.location : undefined
})
})
});

@@ -68,0 +70,0 @@ }

@@ -45,3 +45,8 @@ 'use strict';

return _react2.default.createElement(_reactRouterDom.Redirect, {
to: location.state.referrer
to: typeof redirectTo === 'string' ? location.state.referrer
// If redirectTo is an object merged the state
// of location to redirect....
: _extends({}, location.state.referrer, {
state: _extends({}, redirectTo.state, location.state.referrer.state)
})
});

@@ -51,5 +56,3 @@ }

return _react2.default.createElement(_reactRouterDom.Redirect, {
to: {
pathname: redirectTo
}
to: redirectTo
});

@@ -56,0 +59,0 @@ }

{
"name": "eazy-auth",
"version": "0.3.9",
"version": "0.4.0",
"description": "Easy auth stuff with redux",

@@ -5,0 +5,0 @@ "main": "./index.js",

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