Vonage JWT package. Creates JWT tokens for Vonage API's
npm install @vonage/jwt!GitHub Workflow Status  !Latest Release  ![License][license]
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
* Usage
* Testing
``bash`
npm install @vonage/jwt
`bash`
yarn add @vonage/jwt
All you need to do is require('@vonage/jwt'), and use the returned object tocreate your own JWT token.
`js
const { tokenGenerate } = require('@vonage/jwt');
const jwtToken = tokenGenerate(applicationId, privateKey, generatorOptions);
`
* 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
Run:
`bash``
npm run test
[signup]: https://dashboard.nexmo.com/sign-up?utm_source=DEV_REL&utm_medium=github&utm_campaign=node-server-sdk
[license]: ../../LICENSE.txt