https://github.com/molnarmark/jsonjwt
Effortlessly serve JSON files protected by JWT.
https://github.com/molnarmark/jsonjwt
Last synced: 3 months ago
JSON representation
Effortlessly serve JSON files protected by JWT.
- Host: GitHub
- URL: https://github.com/molnarmark/jsonjwt
- Owner: molnarmark
- License: mit
- Created: 2019-03-04T18:52:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T18:57:31.000Z (over 7 years ago)
- Last Synced: 2025-03-06T04:56:38.683Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonjwt
Effortlessly serve JSON files protected by JWT.
## Installation
```bash
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.