ts-easy-jwt-auth
v1.1.2
Published
Easy drop in jwt authentication and token renewal
Downloads
9
Maintainers
Readme
Easy JWT Auth
An easy drop-in authentication system utilizing a JWT access token & refresh token system.
Easy JWT Auth removes the need to maintain and rebuild authentication for each application. By using the generic helper functions available through this package, authentication and token management can be abstracted away to provide a simple standard interface.
Installation
npm install ts-easy-jwt-auth --save
Usage example
Easy JWT Auth contains a single class that should be instantiated once for each auth system. This will store the access and refresh tokens in memory and handle all user options.
See docs/ for documentation of each component and advanced usage.
See the example/ folder for javascript and typescript examples.
Development setup
The package is written in typescript and javascript.
npm install
npm test
Release History
See CHANGELOG.md for more information.
Meta
Brian Olencki – brian.olencki.com
Distributed under the MIT license. See LICENSE for more information.
https://github.com/Olencki-Development/ts-easy-jwt-auth
Contributing
- Fork it (https://github.com/Olencki-Development/ts-easy-jwt-auth/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request