@crosspost/sdk 0.1.12 → 0.1.13

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
@@ -548,7 +548,7 @@ var AuthApi = class {
548
548
  "POST",
549
549
  `/auth/${platform}/login`,
550
550
  this.options,
551
- options
551
+ options || { redirect: false }
552
552
  );
553
553
  const result = await openAuthPopup(url);
554
554
  if (!result.success || !result.userId) {
package/dist/index.js CHANGED
@@ -502,7 +502,7 @@ var AuthApi = class {
502
502
  "POST",
503
503
  `/auth/${platform}/login`,
504
504
  this.options,
505
- options
505
+ options || { redirect: false }
506
506
  );
507
507
  const result = await openAuthPopup(url);
508
508
  if (!result.success || !result.userId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crosspost/sdk",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "SDK for interacting with the Crosspost API",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/api/auth.ts CHANGED
@@ -71,7 +71,7 @@ export class AuthApi {
71
71
  'POST',
72
72
  `/auth/${platform}/login`,
73
73
  this.options,
74
- options,
74
+ options || { redirect: false },
75
75
  );
76
76
 
77
77
  // Open the popup with the auth URL