@base44-preview/cli 0.0.50-pr.445.8ca0d72 → 0.0.50-pr.445.9844a17

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/cli/index.js CHANGED
@@ -241786,6 +241786,23 @@ var AppAuthConfigResponseSchema = exports_external.object({
241786
241786
  function hasAnyLoginMethod(config3) {
241787
241787
  return config3.enableUsernamePassword || config3.enableGoogleLogin || config3.enableMicrosoftLogin || config3.enableFacebookLogin || config3.enableAppleLogin || config3.enableSSOLogin;
241788
241788
  }
241789
+ var SOCIAL_PROVIDERS = {
241790
+ google: {
241791
+ field: "enableGoogleLogin",
241792
+ label: "Google",
241793
+ customOAuth: {
241794
+ modeField: "googleOAuthMode",
241795
+ clientIdField: "googleOAuthClientId",
241796
+ secretKey: "google_oauth_client_secret",
241797
+ envVar: "BASE44_GOOGLE_OAUTH_CLIENT_SECRET",
241798
+ promptMessage: "Enter Google OAuth client secret"
241799
+ }
241800
+ },
241801
+ microsoft: { field: "enableMicrosoftLogin", label: "Microsoft" },
241802
+ facebook: { field: "enableFacebookLogin", label: "Facebook" },
241803
+ apple: { field: "enableAppleLogin", label: "Apple" }
241804
+ };
241805
+ var VALID_PROVIDER_NAMES = Object.keys(SOCIAL_PROVIDERS);
241789
241806
  function toAuthConfigPayload(config3) {
241790
241807
  return {
241791
241808
  enable_username_password: config3.enableUsernamePassword,
@@ -250854,23 +250871,6 @@ function getAuthPushCommand() {
250854
250871
 
250855
250872
  // src/cli/commands/auth/social-login.ts
250856
250873
  import { dirname as dirname10, join as join15 } from "node:path";
250857
- var SOCIAL_PROVIDERS = {
250858
- google: {
250859
- field: "enableGoogleLogin",
250860
- label: "Google",
250861
- customOAuth: {
250862
- modeField: "googleOAuthMode",
250863
- clientIdField: "googleOAuthClientId",
250864
- secretKey: "google_oauth_client_secret",
250865
- envVar: "BASE44_GOOGLE_OAUTH_CLIENT_SECRET",
250866
- promptMessage: "Enter Google OAuth client secret"
250867
- }
250868
- },
250869
- microsoft: { field: "enableMicrosoftLogin", label: "Microsoft" },
250870
- facebook: { field: "enableFacebookLogin", label: "Facebook" },
250871
- apple: { field: "enableAppleLogin", label: "Apple" }
250872
- };
250873
- var VALID_PROVIDERS = Object.keys(SOCIAL_PROVIDERS);
250874
250874
  function hasCustomOAuthOptions(options) {
250875
250875
  return Boolean(options.clientId || options.clientSecret || options.clientSecretStdin);
250876
250876
  }
@@ -250947,7 +250947,7 @@ async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, p
250947
250947
  };
250948
250948
  }
250949
250949
  function getSocialLoginCommand() {
250950
- return new Base44Command("social-login").description("Enable or disable social login providers (google, microsoft, facebook, apple)").addArgument(new Argument("<provider>", "social login provider").choices(VALID_PROVIDERS)).addArgument(new Argument("<action>", "enable or disable the provider").choices([
250950
+ return new Base44Command("social-login").description("Enable or disable social login providers (google, microsoft, facebook, apple)").addArgument(new Argument("<provider>", "social login provider").choices(VALID_PROVIDER_NAMES)).addArgument(new Argument("<action>", "enable or disable the provider").choices([
250951
250951
  "enable",
250952
250952
  "disable"
250953
250953
  ])).option("--client-id <id>", "custom OAuth client ID (Google only)").option("--client-secret <secret>", "custom OAuth client secret (Google only)").option("--client-secret-stdin", "read client secret from stdin (Google only)").action(socialLoginAction);
@@ -260370,4 +260370,4 @@ export {
260370
260370
  CLIExitError
260371
260371
  };
260372
260372
 
260373
- //# debugId=E4BE99C33E719ECE64756E2164756E21
260373
+ //# debugId=1E321B947588B36B64756E2164756E21