
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@lanetix/make-token
Advanced tools
Module to simplify interating with the auth service to get a token. Up to ~150MB of tokens are cached for slightly less than the time they take to expire (one day), at which point the least recently used are removed.
Ensure that you are are logged in as the lanetix npm user via npm login
or
use a .npmrc
file with a token for the lanetix user.
npm install --save @lanetix/make-token
To use this library,
var makeToken = require('@lanetix/make-token')(
'http://url.to.auth',
'private....key....',
'urn:issurer'
);
makeToken.forUser(1337) //user id
.then(function (token) {
//do stuff with token
});
makeToken.forSystemUser(42) //org id
.then(function (token) {
//do stuff with token
});
In order for auth to not 401, you'll need to register your service's public key here.
FAQs
make a jwt given an org or a user
The npm package @lanetix/make-token receives a total of 0 weekly downloads. As such, @lanetix/make-token popularity was classified as not popular.
We found that @lanetix/make-token demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 30 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.