File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,11 @@ export function setTokenAutoRefreshEnabled(
187
187
state . isTokenAutoRefreshEnabled = isTokenAutoRefreshEnabled ;
188
188
}
189
189
/**
190
- * Get the current App Check token. Attaches to the most recent
191
- * in-flight request if one is present. Returns null if no token
192
- * is present and no token requests are in-flight.
190
+ * Get the current App Check token. If `forceRefresh` is false, it first
191
+ * checks for a valid token in memory, then local persistence (IndexedDB).
192
+ * If not found, or if `forceRefresh` is true, it makes a request to the
193
+ * App Check endpoint for a fresh token. That request attaches
194
+ * to the most recent in-flight request if one is present.
193
195
*
194
196
* @param appCheckInstance - The App Check service instance.
195
197
* @param forceRefresh - If true, will always try to fetch a fresh token.
You can’t perform that action at this time.
0 commit comments