@appwrite.io/console 0.7.0-rc.1 → 0.7.0-rc.2

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.
package/dist/esm/sdk.js CHANGED
@@ -278,7 +278,7 @@ class Client {
278
278
  'x-sdk-name': 'Console',
279
279
  'x-sdk-platform': 'console',
280
280
  'x-sdk-language': 'web',
281
- 'x-sdk-version': '0.7.0-rc.1',
281
+ 'x-sdk-version': '0.7.0-rc.2',
282
282
  'X-Appwrite-Response-Format': '1.6.0',
283
283
  };
284
284
  this.realtime = {
@@ -546,6 +546,12 @@ class Client {
546
546
  prepareRequest(method, url, headers = {}, params = {}) {
547
547
  method = method.toUpperCase();
548
548
  headers = Object.assign({}, this.headers, headers);
549
+ if (typeof window !== 'undefined' && window.localStorage) {
550
+ const cookieFallback = window.localStorage.getItem('cookieFallback');
551
+ if (cookieFallback) {
552
+ headers['X-Fallback-Cookies'] = cookieFallback;
553
+ }
554
+ }
549
555
  let options = {
550
556
  method,
551
557
  headers,