@vonage/jwt
TypeScript icon, indicating that this package has built-in type declarations

1.11.0 • Public • Published

Vonage JWT SDK for Node.js

GitHub Workflow Status 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

Usage

All you need to do is require('@vonage/jwt'), and use the returned object tocreate 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

Readme

Keywords

none

Package Sidebar

Install

npm i @vonage/jwt

Weekly Downloads

71,189

Version

1.11.0

License

Apache-2.0

Unpacked Size

75.7 kB

Total Files

55

Last publish

Collaborators

  • web-il
  • iceberg-team
  • unified_portal
  • vreporter-npm
  • vbcbe
  • yuri.guller
  • idanvon
  • nexmo-devrel
  • vvd
  • vonagemeetings
  • vonage-jenkins
  • maikthomas
  • jeffswartz
  • v-kpheng
  • jmoramunoz2
  • vgai-dev
  • vonage_client_media_processing
  • or.cpc
  • tabdullah
  • deliajolt
  • llihovodov
  • daniel-sapir
  • aviadhouri.va
  • vonage-frontier
  • jtiet
  • hilakl
  • saurabh.vonage
  • leppelin
  • yonatan.kra
  • gpojula
  • mprabhu1
  • elimenko.vonage
  • omrizilber
  • molszewski_v
  • sailusha
  • lallen2
  • abolles
  • twilliams253
  • ilan.aradbilavsky.at.vonage.com
  • mserranomontes
  • ariel12955
  • franbecerra
  • urihaim