@fluxbase/sdk 2026.1.1-rc.6 → 2026.1.1-rc.7

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,6 +548,33 @@ var FluxbaseAuth = class {
548
548
  return await this.fetch.get("/api/v1/auth/captcha/config");
549
549
  });
550
550
  }
551
+ /**
552
+ * Get comprehensive authentication configuration from the server
553
+ * Returns all public auth settings including signup status, OAuth providers,
554
+ * SAML providers, password requirements, and CAPTCHA config in a single request.
555
+ *
556
+ * Use this to:
557
+ * - Conditionally render signup forms based on signup_enabled
558
+ * - Display available OAuth/SAML provider buttons
559
+ * - Show password requirements to users
560
+ * - Configure CAPTCHA widgets
561
+ *
562
+ * @returns Promise with complete authentication configuration
563
+ * @example
564
+ * ```typescript
565
+ * const { data, error } = await client.auth.getAuthConfig();
566
+ * if (data) {
567
+ * console.log('Signup enabled:', data.signup_enabled);
568
+ * console.log('OAuth providers:', data.oauth_providers);
569
+ * console.log('Password min length:', data.password_min_length);
570
+ * }
571
+ * ```
572
+ */
573
+ async getAuthConfig() {
574
+ return wrapAsync(async () => {
575
+ return await this.fetch.get("/api/v1/auth/config");
576
+ });
577
+ }
551
578
  /**
552
579
  * Sign out the current user
553
580
  */