1.10.0 • Published 2 months ago

@vonage/jwt v1.10.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

Vonage JWT SDK for Node.js

GitHub Workflow Status Codecov Latest Release Contributor Covenant 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

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
1.10.0

2 months ago

1.9.1

3 months ago

1.9.0

3 months ago

1.8.0

4 months ago

1.6.1-1

8 months ago

1.6.1-4

8 months ago

1.6.1-3

8 months ago

1.6.1-6

7 months ago

1.6.1-5

8 months ago

1.7.0

7 months ago

1.6.0

9 months ago

1.5.0

9 months ago

1.6.1-0

8 months ago

1.4.0

11 months ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.3.0

1 year ago

1.1.2

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.9

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.3.0

2 years ago

0.1.0

2 years ago

0.2.0

2 years ago

3.0.0-beta.4

2 years ago

3.0.0-beta.1

3 years ago

3.0.0-beta.0

3 years ago