@55387.ai/uniauth-client 1.1.2 → 1.1.3

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/index.cjs CHANGED
@@ -1064,6 +1064,8 @@ var UniAuthClient = class {
1064
1064
  ...this.config.appKey && { "X-App-Key": this.config.appKey },
1065
1065
  ...options.headers
1066
1066
  },
1067
+ credentials: "include",
1068
+ // Required for SSO session cookie handling
1067
1069
  maxRetries: this.config.enableRetry ? 3 : 0,
1068
1070
  timeout: this.config.timeout
1069
1071
  };
package/dist/index.js CHANGED
@@ -1030,6 +1030,8 @@ var UniAuthClient = class {
1030
1030
  ...this.config.appKey && { "X-App-Key": this.config.appKey },
1031
1031
  ...options.headers
1032
1032
  },
1033
+ credentials: "include",
1034
+ // Required for SSO session cookie handling
1033
1035
  maxRetries: this.config.enableRetry ? 3 : 0,
1034
1036
  timeout: this.config.timeout
1035
1037
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@55387.ai/uniauth-client",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "UniAuth Frontend SDK - Phone, Email, SSO login for browser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -1332,6 +1332,7 @@ export class UniAuthClient {
1332
1332
  ...(this.config.appKey && { 'X-App-Key': this.config.appKey }),
1333
1333
  ...options.headers,
1334
1334
  },
1335
+ credentials: 'include', // Required for SSO session cookie handling
1335
1336
  maxRetries: this.config.enableRetry ? 3 : 0,
1336
1337
  timeout: this.config.timeout,
1337
1338
  };