@fluxbase/sdk 0.0.1-rc.33 → 0.0.1-rc.35

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
@@ -357,15 +357,17 @@ var FluxbaseAuth = class {
357
357
  /**
358
358
  * Setup 2FA for the current user (Supabase-compatible)
359
359
  * Enrolls a new MFA factor and returns TOTP details
360
+ * @param issuer - Optional custom issuer name for the QR code (e.g., "MyApp"). If not provided, uses server default.
360
361
  * @returns Promise with factor id, type, and TOTP setup details
361
362
  */
362
- async setup2FA() {
363
+ async setup2FA(issuer) {
363
364
  return wrapAsync(async () => {
364
365
  if (!this.session) {
365
366
  throw new Error("Not authenticated");
366
367
  }
367
368
  return await this.fetch.post(
368
- "/api/v1/auth/2fa/setup"
369
+ "/api/v1/auth/2fa/setup",
370
+ issuer ? { issuer } : void 0
369
371
  );
370
372
  });
371
373
  }