3.0.0 • Published 10 months ago

jsonwebtoken-tool v3.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

This repo is created only for experimential reason.

DO NOT USE THIS REPO FOR PRODUCTION USE CASE

jswonwebtoken_tool

An implementation of rfc7519

Install

$ npm install jsonwebtoken_tool

Usage

jwt.sign(payload, secretOrPrivateKey, options, callback)

(Asynchronous) If a callback is supplied, the callback is called with the err or the JWT.

(Synchronous) Returns the JsonWebToken as string

jwt.verify(token, secretOrPublicKey, options, callback)

(Asynchronous) If a callback is supplied, function acts asynchronously. The callback is called with the decoded payload if the signature is valid and optional expiration, audience, or issuer are valid. If not, it will be called with the error.

(Synchronous) If a callback is not supplied, function acts synchronously. Returns the payload decoded if the signature is valid and optional expiration, audience, or issuer are valid. If not, it will throw the error.

jwt.decode(token , options)

(Synchronous) Returns the decoded payload without verifying if the signature is valid.

2.2.1

10 months ago

2.2.3

10 months ago

2.2.2

10 months ago

2.2.5

10 months ago

2.2.4

10 months ago

3.0.0

10 months ago

2.0.0

10 months ago

1.1.0

1 year ago

1.0.0

1 year ago