
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@convergence/jwt-util
Advanced tools
A utility for generating JSON Web Tokens for authenticating to Convergence.
This project helps users easily create a JavaScript Web Token (JWT) for logging into Convergence. JWTs allow Convergnece to trust that an external system has properly authenticated a user. Convergence uses asymetric RSA Public / Private keys to generate JWTs. Convergence will store your public key. You must store your private key in a safe place. The public / private key pair sets up trust between your application and Convergence.
You can learn more about JWTs at http://jwt.io
To create a JWT key for your domain log into the Convergence Administration Console. If you have questions about generating a JWT Key Pair please consult the Convergence Developer Guide
npm install --save @convergence/jwt-util
The below demonstrates how you can generate a JWT in node using a private key stored on the filesystem.
var fs = require('fs');
var JwtGenerator = require('@convergence/jwt-util');
// replace with your private key
var privateKey = fs.readFileSync('test/private.key');
// Replace with your key id
var keyId = "my-convergence-key";
var gen = new JwtGenerator(keyId, privateKey);
// Provide optional information about the uers.
var claims = {
firstName: "John",
lastName: "Doe"
};
// Provide the username
var username = "jdoe";
// Generate the token
var token = gen.generate(username, claims);
FAQs
A utility for generating JSON Web Tokens for authenticating to Convergence.
We found that @convergence/jwt-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.