@firebase/storage 0.13.4 → 0.13.5-canary.01f36ea41

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.
@@ -1,4 +1,4 @@
1
- import { _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
1
+ import { _isFirebaseServerApp, _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
2
2
  import { FirebaseError, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
3
3
  import { Component } from '@firebase/component';
4
4
 
@@ -3275,6 +3275,9 @@ class FirebaseStorageImpl {
3275
3275
  return null;
3276
3276
  }
3277
3277
  async _getAppCheckToken() {
3278
+ if (_isFirebaseServerApp(this.app) && this.app.settings.appCheckToken) {
3279
+ return this.app.settings.appCheckToken;
3280
+ }
3278
3281
  const appCheck = this._appCheckProvider.getImmediate({ optional: true });
3279
3282
  if (appCheck) {
3280
3283
  const result = await appCheck.getToken();
@@ -3330,7 +3333,7 @@ class FirebaseStorageImpl {
3330
3333
  }
3331
3334
 
3332
3335
  const name = "@firebase/storage";
3333
- const version = "0.13.4";
3336
+ const version = "0.13.5-canary.01f36ea41";
3334
3337
 
3335
3338
  /**
3336
3339
  * @license