react-native-appwrite 0.9.1 → 0.9.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
@@ -78,7 +78,7 @@ class Client {
78
78
  'x-sdk-name': 'React Native',
79
79
  'x-sdk-platform': 'client',
80
80
  'x-sdk-language': 'reactnative',
81
- 'x-sdk-version': '0.9.1',
81
+ 'x-sdk-version': '0.9.2',
82
82
  'X-Appwrite-Response-Format': '1.7.0',
83
83
  };
84
84
  this.realtime = {
@@ -378,8 +378,10 @@ class Client {
378
378
  let options = {
379
379
  method,
380
380
  headers,
381
- credentials: 'include'
382
381
  };
382
+ if (headers['X-Appwrite-Dev-Key'] === undefined) {
383
+ options.credentials = 'include';
384
+ }
383
385
  if (method === 'GET') {
384
386
  for (const [key, value] of Object.entries(Service.flatten(params))) {
385
387
  url.searchParams.append(key, value);