Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aloco/auth-stapler
Authentication layer extension for network-stapler
https://github.com/aloco/auth-stapler
auth authentication client http javascript network network-stapler rxjs typescript
Last synced: about 1 month ago
JSON representation
Authentication layer extension for network-stapler
- Host: GitHub
- URL: https://github.com/aloco/auth-stapler
- Owner: aloco
- License: mit
- Created: 2017-05-30T14:48:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T14:53:36.000Z (over 7 years ago)
- Last Synced: 2024-09-14T10:40:04.009Z (2 months ago)
- Topics: auth, authentication, client, http, javascript, network, network-stapler, rxjs, typescript
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auth-stapler
`auth-stapler` extends [network-stapler](https://github.com/aloco/network-stapler) and provides automatical token refresh handling.
### Features
- Automatic token refresh when encountering a specific status code
- Defers automatically all requests which are fired during token refresh and starts them as soon as token refresh finished
- Reactive API powered by [rxjs](https://github.com/Reactive-Extensions/RxJS)## Installation
`auth-stapler` is available on [npm](https://www.npmjs.com/package/auth-stapler)
```shell
npm install auth-stapler
```## Todos
- [ ] documentation
- [ ] full example
- [ ] unit tests## Contributing
- Create something awesome, make the code better, add some functionality, whatever (this is the hardest part).
- [Fork it](http://help.github.com/forking/)
- Create new branch to make your changes
- Commit all your changes to your branch
- Submit a [pull request](http://help.github.com/pull-requests/)