@firebase/app-check 0.8.7 → 0.8.8-canary.1c8dbee46

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.
@@ -125,9 +125,11 @@ export declare interface CustomProviderOptions {
125
125
  export declare function getLimitedUseToken(appCheckInstance: AppCheck): Promise<AppCheckTokenResult>;
126
126
 
127
127
  /**
128
- * Get the current App Check token. Attaches to the most recent
129
- * in-flight request if one is present. Returns null if no token
130
- * is present and no token requests are in-flight.
128
+ * Get the current App Check token. If `forceRefresh` is false, this function first
129
+ * checks for a valid token in memory, then local persistence (IndexedDB).
130
+ * If not found, or if `forceRefresh` is true, it makes a request to the
131
+ * App Check endpoint for a fresh token. That request attaches
132
+ * to the most recent in-flight request if one is present.
131
133
  *
132
134
  * @param appCheckInstance - The App Check service instance.
133
135
  * @param forceRefresh - If true, will always try to fetch a fresh token.
@@ -147,9 +147,11 @@ export declare interface CustomProviderOptions {
147
147
  export declare function getLimitedUseToken(appCheckInstance: AppCheck): Promise<AppCheckTokenResult>;
148
148
 
149
149
  /**
150
- * Get the current App Check token. Attaches to the most recent
151
- * in-flight request if one is present. Returns null if no token
152
- * is present and no token requests are in-flight.
150
+ * Get the current App Check token. If `forceRefresh` is false, this function first
151
+ * checks for a valid token in memory, then local persistence (IndexedDB).
152
+ * If not found, or if `forceRefresh` is true, it makes a request to the
153
+ * App Check endpoint for a fresh token. That request attaches
154
+ * to the most recent in-flight request if one is present.
153
155
  *
154
156
  * @param appCheckInstance - The App Check service instance.
155
157
  * @param forceRefresh - If true, will always try to fetch a fresh token.
@@ -1156,7 +1156,7 @@ function internalFactory(appCheck) {
1156
1156
  }
1157
1157
 
1158
1158
  var name = "@firebase/app-check";
1159
- var version = "0.8.7";
1159
+ var version = "0.8.8-canary.1c8dbee46";
1160
1160
 
1161
1161
  /**
1162
1162
  * @license
@@ -1728,9 +1728,11 @@ function setTokenAutoRefreshEnabled(appCheckInstance, isTokenAutoRefreshEnabled)
1728
1728
  state.isTokenAutoRefreshEnabled = isTokenAutoRefreshEnabled;
1729
1729
  }
1730
1730
  /**
1731
- * Get the current App Check token. Attaches to the most recent
1732
- * in-flight request if one is present. Returns null if no token
1733
- * is present and no token requests are in-flight.
1731
+ * Get the current App Check token. If `forceRefresh` is false, this function first
1732
+ * checks for a valid token in memory, then local persistence (IndexedDB).
1733
+ * If not found, or if `forceRefresh` is true, it makes a request to the
1734
+ * App Check endpoint for a fresh token. That request attaches
1735
+ * to the most recent in-flight request if one is present.
1734
1736
  *
1735
1737
  * @param appCheckInstance - The App Check service instance.
1736
1738
  * @param forceRefresh - If true, will always try to fetch a fresh token.