auth-stapler
extends network-stapler and provides automatical token refresh handling.
- 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
auth-stapler
is available on npm
npm install auth-stapler
- documentation
- full example
- unit tests
- Create something awesome, make the code better, add some functionality, whatever (this is the hardest part).
- Fork it
- Create new branch to make your changes
- Commit all your changes to your branch
- Submit a pull request