Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/)