@base44-preview/cli 0.0.50-pr.445.28459a0 → 0.0.50-pr.445.45116f6
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 +12 -7
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -241789,16 +241789,15 @@ function hasAnyLoginMethod(config3) {
|
|
|
241789
241789
|
var SOCIAL_PROVIDERS = {
|
|
241790
241790
|
google: {
|
|
241791
241791
|
field: "enableGoogleLogin",
|
|
241792
|
-
label: "Google",
|
|
241793
241792
|
customOAuth: {
|
|
241794
241793
|
modeField: "googleOAuthMode",
|
|
241795
241794
|
clientIdField: "googleOAuthClientId",
|
|
241796
241795
|
secretKey: "google_oauth_client_secret"
|
|
241797
241796
|
}
|
|
241798
241797
|
},
|
|
241799
|
-
microsoft: { field: "enableMicrosoftLogin"
|
|
241800
|
-
facebook: { field: "enableFacebookLogin"
|
|
241801
|
-
apple: { field: "enableAppleLogin"
|
|
241798
|
+
microsoft: { field: "enableMicrosoftLogin" },
|
|
241799
|
+
facebook: { field: "enableFacebookLogin" },
|
|
241800
|
+
apple: { field: "enableAppleLogin" }
|
|
241802
241801
|
};
|
|
241803
241802
|
function toAuthConfigPayload(config3) {
|
|
241804
241803
|
return {
|
|
@@ -250898,6 +250897,12 @@ function getAuthPushCommand() {
|
|
|
250898
250897
|
|
|
250899
250898
|
// src/cli/commands/auth/social-login.ts
|
|
250900
250899
|
import { dirname as dirname10, join as join15, resolve as resolve2 } from "node:path";
|
|
250900
|
+
var PROVIDER_LABELS = {
|
|
250901
|
+
google: "Google",
|
|
250902
|
+
microsoft: "Microsoft",
|
|
250903
|
+
facebook: "Facebook",
|
|
250904
|
+
apple: "Apple"
|
|
250905
|
+
};
|
|
250901
250906
|
var VALID_PROVIDER_NAMES = Object.keys(SOCIAL_PROVIDERS);
|
|
250902
250907
|
var PROVIDER_OAUTH_CLI = {
|
|
250903
250908
|
google: {
|
|
@@ -250914,7 +250919,7 @@ function hasCustomOAuthOptions(options) {
|
|
|
250914
250919
|
async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, provider, action, options) {
|
|
250915
250920
|
const shouldEnable = action === "enable";
|
|
250916
250921
|
const providerInfo = SOCIAL_PROVIDERS[provider];
|
|
250917
|
-
const label =
|
|
250922
|
+
const label = PROVIDER_LABELS[provider];
|
|
250918
250923
|
const hasOAuthOptions = hasCustomOAuthOptions(options);
|
|
250919
250924
|
if (hasOAuthOptions && !providerInfo.customOAuth) {
|
|
250920
250925
|
throw new InvalidInputError(`Custom OAuth options are only supported for providers with custom OAuth (e.g., google). Use: base44 auth social-login ${provider} ${action}`);
|
|
@@ -250975,7 +250980,7 @@ async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, p
|
|
|
250975
250980
|
let outroMessage = `${label} login ${newStatus}${oauthNote} in local config. Run \`base44 auth push\` or \`base44 deploy\` to apply.`;
|
|
250976
250981
|
if (useCustomOAuth && !clientSecret) {
|
|
250977
250982
|
outroMessage += `
|
|
250978
|
-
Remember to push the client secret separately: base44
|
|
250983
|
+
Remember to push the client secret separately: base44 auth social-login ${provider} enable --client-id ${options.clientId} --env-file <path>`;
|
|
250979
250984
|
}
|
|
250980
250985
|
return { outroMessage };
|
|
250981
250986
|
}
|
|
@@ -260418,4 +260423,4 @@ export {
|
|
|
260418
260423
|
CLIExitError
|
|
260419
260424
|
};
|
|
260420
260425
|
|
|
260421
|
-
//# debugId=
|
|
260426
|
+
//# debugId=BDDCFD6582DA543264756E2164756E21
|