0.1.1 • Published 5 years ago
jsonjwt v0.1.1
jsonjwt
Effortlessly serve JSON files protected by JWT.
Installation
npm install --save jsonjwt
API
jsonjwt.stringify(object, secret)
jsonjwt.parse(token, [secret])
- If no secret is provided, it will try and fetch
token-secret
from LocalStorage.