@ethlete/query 0.1.0-next.11 → 0.1.0-next.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,6 +63,11 @@ export interface BearerRefreshConfig {
63
63
  * The api's refresh route method
64
64
  */
65
65
  method: Method;
66
+ /**
67
+ * The maximum number of refresh attempts
68
+ * @default 3
69
+ */
70
+ maxRefreshAttempts?: number;
66
71
  /**
67
72
  * The way the refresh token is sent to the api
68
73
  * @default 'body'
@@ -7,6 +7,7 @@ export declare class BearerAuthProvider implements AuthProvider {
7
7
  private _token;
8
8
  private _refreshToken;
9
9
  private _refreshTimerSubscription;
10
+ private _failureCount;
10
11
  get header(): {
11
12
  Authorization: string;
12
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/query",
3
- "version": "0.1.0-next.11",
3
+ "version": "0.1.0-next.12",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },