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

limes

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

limes - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

lib/IdentityProvider.js

2

.eslintrc.json
{
"extends": "es/2015/server"
"extends": "es/node"
}
{
"name": "limes",
"version": "2.0.0",
"version": "3.0.0",
"description": "limes authenticates users.",

@@ -15,12 +15,11 @@ "contributors": [

],
"main": "dist/Limes.js",
"main": "lib/Limes.js",
"dependencies": {
"@babel/runtime": "7.3.4",
"jsonwebtoken": "8.5.0"
"jsonwebtoken": "8.5.1"
},
"devDependencies": {
"assertthat": "2.0.3",
"express": "4.16.4",
"roboter": "4.0.2",
"supertest": "4.0.0"
"assertthat": "3.0.0",
"express": "4.17.0",
"roboter": "6.1.0",
"supertest": "4.0.2"
},

@@ -27,0 +26,0 @@ "repository": {

@@ -57,6 +57,6 @@ # limes

From time to time, e.g. for testing, you may want to get a JSON object that looks like a decoded token, but avoid the effort to create a signed token first. For this, use the static `issueUntrustedTokenAsJson` function and hand over the desired `issuer`, the `subject`, and an optional `payload`:
From time to time, e.g. for testing, you may want to get a JSON object that looks like a decoded token, but avoid the effort to create a signed token first. For this, use the static `issueUntrustedToken` function and hand over the desired `issuer`, the `subject`, and an optional `payload`:
```javascript
const decodedToken = Limes.issueUntrustedTokenAsJson({
const { token, decodedToken } = Limes.issueUntrustedToken({
issuer: 'https://untrusted.thenativeweb.io',

@@ -99,3 +99,3 @@ subject: 'jane.doe'

Either way, the verified and decoded token will be attached to the `req.user` property:
Either way, the verified and decoded token will be attached to the `req.user` property, while the original token will be attached to the `req.token` property:

@@ -110,3 +110,3 @@ ```javascript

app.get('/', (req, res) => {
res.json(req.user);
res.json({ user: req.user, token: req.token });
});

@@ -113,0 +113,0 @@ ```

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