cn-auth-helper
0.6.0 • Public • Published
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
Version | Downloads (Last 7 Days) | Tag |
---|
0.6.0 | 5 | latest |
Version History
Package Sidebar
Install
Weekly Downloads