Skip to content

Authentication layer extension for network-stapler

License

Notifications You must be signed in to change notification settings

aloco/auth-stapler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth-stapler

auth-stapler extends 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

Installation

auth-stapler is available on npm

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
  • Create new branch to make your changes
  • Commit all your changes to your branch
  • Submit a pull request