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)

Readme

Keywords

Package Sidebar

Install

npm i cn-auth-helper

Weekly Downloads

4

Version

0.6.0

License

MIT

Last publish

Collaborators

  • harin76