This repository was archived by the owner on Aug 6, 2019. It is now read-only.
7.0.0
New features:
APIRequestUnauthorizedis broadcast if requests repeated after a 401 resolution still return a 401$cancelnow halts the HTTP request itself, and doesn't reject the main promise by defaultkeyNamemethod allows customization of the authorization header name
Additional breaking changes/notes:
- If a repeated request after a 401 resolution still returns a 401, any other requests in the repeat queue are silently canceled
$cancelno longer rejects the main promise by default, but can be instructed to do so by passing therejectparameter- The authorization header has been renamed from
AUTHORIZATIONtoAuthorization. Since HTTP headers are supposed to be case-insensitive this shouldn't be breaking, but in case you were referencing it explicitly in case-sensitive JavaScript, you can usekeyNameto change it back.