cn-auth-helper

0.6.0 • Public • Published

authHelper

JWT Authorization Helper

Provides four helper methods to encode and decode JWT tokens.

  • encodeToken (sub, secret, expiry)
  • decodeToken (payload, secret)
  • decodeHeader (authHeader, secret)
  • isAuthenticated (authHeader, secret)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.05latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.05
0.5.00
0.4.00
0.3.00
0.2.10
0.2.01
0.1.00

Package Sidebar

Install

npm i cn-auth-helper

Weekly Downloads

6

Version

0.6.0

License

MIT

Last publish

Collaborators

  • harin76