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

@vonage/jwt

Package Overview
Dependencies
Maintainers
37
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/jwt

Vonage JWT package. Creates JWT tokens for Vonage API's

  • 1.0.10
  • Source
  • npm
  • Socket score

Version published
Maintainers
37
Created
Source

Vonage JWT SDK for Node.js

GitHub Workflow Status (branch) Codecov Latest Release Contributor Covenant License

Vonage

This is the Vonage JWT SDK for Node.js. This package helps create JWT tokens to use with Vonage APIs.

For full API documentation refer to developer.vonage.com.

Installation

With NPM

npm install @vonage/jwt

With Yarn

yarn add @vonage/jwt

Using the Vonage JWT SDK

All you need to do is require('@vonage/jwt'), and use the returned object to create your own JWT token.

const { tokenGenerate } = require('@vonage/jwt');

const jwtToken = tokenGenerate(applicationId, privateKey, generatorOptions);

Parameters

  • applicationId: string - The Vonage Application Id.
  • privateKey: string | Buffer - The private key.
  • generatorOptions: GeneratorOptions - An object that can be used to set options for the token. See the jsonwebtoken for all options and claims. You can also pass in a Vonage acl

Testing

Run:

npm run test

FAQs

Package last updated on 27 Feb 2023

Did you know?

Socket

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.

Install

Related posts

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