@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
 
@@ -3302,6 +3302,9 @@ class FirebaseStorageImpl {
3302
3302
  return null;
3303
3303
  }
3304
3304
  async _getAppCheckToken() {
3305
+ if (_isFirebaseServerApp(this.app) && this.app.settings.appCheckToken) {
3306
+ return this.app.settings.appCheckToken;
3307
+ }
3305
3308
  const appCheck = this._appCheckProvider.getImmediate({ optional: true });
3306
3309
  if (appCheck) {
3307
3310
  const result = await appCheck.getToken();
@@ -3357,7 +3360,7 @@ class FirebaseStorageImpl {
3357
3360
  }
3358
3361
 
3359
3362
  const name = "@firebase/storage";
3360
- const version = "0.13.4";
3363
+ const version = "0.13.5-canary.01f36ea41";
3361
3364
 
3362
3365
  /**
3363
3366
  * @license