@dotbots-boutique/auth-sdk 1.0.24 → 1.0.25

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/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @dotbots-boutique/auth-sdk
2
2
 
3
- The official authentication and authorisation SDK for apps running on the [DotBots Boutique](https://dotbots.boutique) platform.
3
+ The official authentication and authorisation SDK for apps running on the [DotBots Boutique](https://marketplace.dotbots.boutique) platform.
4
4
 
5
5
  ## What is DotBots Boutique?
6
6
 
7
- [DotBots Boutique](https://dotbots.boutique) is a marketplace platform where vibe coders build and publish apps. The platform handles user management, authentication, authorisation, payments, and infrastructure, and offers a growing set of additional services — so you can focus on building your app.
7
+ [DotBots Boutique](https://marketplace.dotbots.boutique) is a marketplace platform where vibe coders build and publish apps. The platform handles user management, authentication, authorisation, payments, and infrastructure, and offers a growing set of additional services — so you can focus on building your app.
8
8
 
9
9
  ---
10
10
 
@@ -351,7 +351,7 @@ try {
351
351
  interface DotBotsConfig {
352
352
  appId: string; // Required — app ID assigned by the platform
353
353
  apiUrl: string; // Required — always 'https://api.dotbots.ai'
354
- marketplaceOrigin?: string; // Default: 'https://dotbots.boutique'
354
+ marketplaceOrigin?: string; // Default: 'https://marketplace.dotbots.boutique'
355
355
  tokenRefreshBuffer?: number; // Default: 60000 (ms before expiry to refresh)
356
356
  iframeTimeout?: number; // Default: 5000 (ms to wait for auth code)
357
357
  onTokenRefreshFailed?: () => void; // Called when token refresh fails
package/dist/cjs/index.js CHANGED
@@ -267,7 +267,7 @@ class DotBotsAuth {
267
267
  };
268
268
  this.config = config;
269
269
  this.environment = this.detectEnvironment();
270
- this.marketplaceOrigin = config.marketplaceOrigin ?? 'https://dotbots.boutique';
270
+ this.marketplaceOrigin = config.marketplaceOrigin ?? 'https://marketplace.dotbots.boutique';
271
271
  console.warn(`[DotBotsAuth] SDK v${DotBotsAuth.SDK_VERSION} — env: ${this.environment}, appId: ${config.appId}`);
272
272
  this.tokenManager = new TokenManager(config, this.environment, () => this.emit('tokenRefreshed'), () => this.emit('sessionExpired'), () => this.proxyConfigManager.getBaseUrl());
273
273
  this.postMessageHandler = new PostMessageHandler(this.marketplaceOrigin);
@@ -284,7 +284,7 @@ class DotBotsAuth {
284
284
  // Redirect to marketplace if opened directly (not in iframe)
285
285
  if (!this.postMessageHandler.isInIframe()) {
286
286
  const mode = this.environment === 'test' ? '?mode=test' : '';
287
- window.location.href = `https://dotbots.boutique/boutique/${this.config.appId}/open${mode}`;
287
+ window.location.href = `https://marketplace.dotbots.boutique/boutique/${this.config.appId}/open${mode}`;
288
288
  return;
289
289
  }
290
290
  // Step 1 — Fetch proxy config
@@ -580,7 +580,7 @@ class DotBotsAuth {
580
580
  }
581
581
  }
582
582
  }
583
- DotBotsAuth.SDK_VERSION = '1.0.24';
583
+ DotBotsAuth.SDK_VERSION = '1.0.25';
584
584
 
585
585
  exports.DotBotsAuth = DotBotsAuth;
586
586
  exports.DotBotsAuthError = DotBotsAuthError;
package/dist/esm/index.js CHANGED
@@ -265,7 +265,7 @@ class DotBotsAuth {
265
265
  };
266
266
  this.config = config;
267
267
  this.environment = this.detectEnvironment();
268
- this.marketplaceOrigin = config.marketplaceOrigin ?? 'https://dotbots.boutique';
268
+ this.marketplaceOrigin = config.marketplaceOrigin ?? 'https://marketplace.dotbots.boutique';
269
269
  console.warn(`[DotBotsAuth] SDK v${DotBotsAuth.SDK_VERSION} — env: ${this.environment}, appId: ${config.appId}`);
270
270
  this.tokenManager = new TokenManager(config, this.environment, () => this.emit('tokenRefreshed'), () => this.emit('sessionExpired'), () => this.proxyConfigManager.getBaseUrl());
271
271
  this.postMessageHandler = new PostMessageHandler(this.marketplaceOrigin);
@@ -282,7 +282,7 @@ class DotBotsAuth {
282
282
  // Redirect to marketplace if opened directly (not in iframe)
283
283
  if (!this.postMessageHandler.isInIframe()) {
284
284
  const mode = this.environment === 'test' ? '?mode=test' : '';
285
- window.location.href = `https://dotbots.boutique/boutique/${this.config.appId}/open${mode}`;
285
+ window.location.href = `https://marketplace.dotbots.boutique/boutique/${this.config.appId}/open${mode}`;
286
286
  return;
287
287
  }
288
288
  // Step 1 — Fetch proxy config
@@ -578,6 +578,6 @@ class DotBotsAuth {
578
578
  }
579
579
  }
580
580
  }
581
- DotBotsAuth.SDK_VERSION = '1.0.24';
581
+ DotBotsAuth.SDK_VERSION = '1.0.25';
582
582
 
583
583
  export { DotBotsAuth, DotBotsAuthError };
@@ -11,7 +11,7 @@ export declare class DotBotsAuth {
11
11
  private initialized;
12
12
  private initializePromise;
13
13
  private readonly _console;
14
- static readonly SDK_VERSION = "1.0.24";
14
+ static readonly SDK_VERSION = "1.0.25";
15
15
  constructor(config: DotBotsConfig);
16
16
  initialize(): Promise<void>;
17
17
  private _doInitialize;
@@ -265,7 +265,7 @@ class DotBotsAuth {
265
265
  };
266
266
  this.config = config;
267
267
  this.environment = this.detectEnvironment();
268
- this.marketplaceOrigin = config.marketplaceOrigin ?? 'https://dotbots.boutique';
268
+ this.marketplaceOrigin = config.marketplaceOrigin ?? 'https://marketplace.dotbots.boutique';
269
269
  console.warn(`[DotBotsAuth] SDK v${DotBotsAuth.SDK_VERSION} — env: ${this.environment}, appId: ${config.appId}`);
270
270
  this.tokenManager = new TokenManager(config, this.environment, () => this.emit('tokenRefreshed'), () => this.emit('sessionExpired'), () => this.proxyConfigManager.getBaseUrl());
271
271
  this.postMessageHandler = new PostMessageHandler(this.marketplaceOrigin);
@@ -282,7 +282,7 @@ class DotBotsAuth {
282
282
  // Redirect to marketplace if opened directly (not in iframe)
283
283
  if (!this.postMessageHandler.isInIframe()) {
284
284
  const mode = this.environment === 'test' ? '?mode=test' : '';
285
- window.location.href = `https://dotbots.boutique/boutique/${this.config.appId}/open${mode}`;
285
+ window.location.href = `https://marketplace.dotbots.boutique/boutique/${this.config.appId}/open${mode}`;
286
286
  return;
287
287
  }
288
288
  // Step 1 — Fetch proxy config
@@ -578,6 +578,6 @@ class DotBotsAuth {
578
578
  }
579
579
  }
580
580
  }
581
- DotBotsAuth.SDK_VERSION = '1.0.24';
581
+ DotBotsAuth.SDK_VERSION = '1.0.25';
582
582
 
583
583
  export { DotBotsAuth, DotBotsAuthError };
@@ -8,7 +8,7 @@ export interface DotBotsConfig {
8
8
  appId: string;
9
9
  /** Base URL of the DotBots API */
10
10
  apiUrl: string;
11
- /** Origin of the marketplace (default: 'https://dotbots.boutique') */
11
+ /** Origin of the marketplace (default: 'https://marketplace.dotbots.boutique') */
12
12
  marketplaceOrigin?: string;
13
13
  /** Milliseconds before token expiry to trigger refresh (default: 60000) */
14
14
  tokenRefreshBuffer?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotbots-boutique/auth-sdk",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Authentication SDK for DotBots marketplace apps",
5
5
  "license": "MIT",
6
6
  "type": "module",