Socket
Socket
Sign inDemoInstall

@auth/express

Package Overview
Dependencies
92
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.3 to 0.5.4

14

index.js

@@ -138,6 +138,12 @@ /**

return next(err);
config.basePath = getBasePath(req);
setEnvDefaults(process.env, config);
await toExpressResponse(await Auth(toWebRequest(req), config), res);
next();
try {
config.basePath = getBasePath(req);
setEnvDefaults(process.env, config);
await toExpressResponse(await Auth(toWebRequest(req), config), res);
if (!res.headersSent)
next();
}
catch (error) {
next(error);
}
});

@@ -144,0 +150,0 @@ });

{
"name": "@auth/express",
"description": "Authentication for Express.",
"version": "0.5.3",
"version": "0.5.4",
"type": "module",

@@ -6,0 +6,0 @@ "files": [

@@ -152,6 +152,10 @@ /**

if (err) return next(err)
config.basePath = getBasePath(req)
setEnvDefaults(process.env, config)
await toExpressResponse(await Auth(toWebRequest(req), config), res)
next()
try {
config.basePath = getBasePath(req)
setEnvDefaults(process.env, config)
await toExpressResponse(await Auth(toWebRequest(req), config), res)
if (!res.headersSent) next()
} catch (error) {
next(error)
}
})

@@ -158,0 +162,0 @@ })

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc