Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

auth0-api-tokens

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-api-tokens - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "auth0-api-tokens",
"version": "1.1.1",
"version": "1.1.2",
"description": "Library that given a Auth0 global client credentials allows users to generate JWT tokens for API v2",

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

@@ -26,9 +26,8 @@ var jwt = require('jsonwebtoken');

return jwt.sign(payload,
new Buffer(credentials.clientSecret, 'base64').toString('binary'), {
expiresIn: lifetimeInSeconds,
audience: credentials.clientId,
noTimestamp: true // we generate it before for the `jti`
});
return jwt.sign(payload, new Buffer(credentials.clientSecret, 'base64'), {
expiresIn: lifetimeInSeconds,
audience: credentials.clientId,
noTimestamp: true // we generate it before for the `jti`
});
};
};
var expect = require('chai').expect;
var jws = require('jws');
var jwt = require('jsonwebtoken');
var jws = require('jws');
var clientSecret = '3IbdgWA2kUk4MbIf1-17J5JjpcJDwOqFsVQ2TnrrzsVvwPTE84wNoEX8EdPpsn7F';
var createToken = require('..')({
clientId: 'my_client',
clientSecret: '3IbdgWA2kUk4MbIf1-17J5JjpcJDwOqFsVQ2TnrrzsVvwPTE84wNoEX8EdPpsn7F'
clientSecret: clientSecret
});

@@ -59,2 +61,6 @@

});
it('should set a valid signature', function () {
expect(jwt.verify(token, new Buffer(clientSecret, 'base64'))).to.be.a('object');
});
});

Sorry, the diff of this file is not supported yet

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