mobbdev 1.2.46 → 1.2.47
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.
|
@@ -7642,21 +7642,21 @@ async function getAuthenticatedGQLClient({
|
|
|
7642
7642
|
const authManager = new AuthManager(webAppUrl, apiUrl);
|
|
7643
7643
|
let gqlClient = authManager.getGQLClient(inputApiKey);
|
|
7644
7644
|
gqlClient = await handleMobbLogin({
|
|
7645
|
-
inGqlClient: gqlClient,
|
|
7646
7645
|
skipPrompts: isSkipPrompts,
|
|
7647
7646
|
apiUrl,
|
|
7648
|
-
webAppUrl
|
|
7647
|
+
webAppUrl,
|
|
7648
|
+
authManager
|
|
7649
7649
|
});
|
|
7650
7650
|
return gqlClient;
|
|
7651
7651
|
}
|
|
7652
7652
|
async function handleMobbLogin({
|
|
7653
|
-
inGqlClient,
|
|
7654
7653
|
apiKey,
|
|
7655
7654
|
skipPrompts,
|
|
7656
7655
|
apiUrl,
|
|
7657
7656
|
webAppUrl,
|
|
7658
7657
|
loginContext,
|
|
7659
|
-
loginPath
|
|
7658
|
+
loginPath,
|
|
7659
|
+
authManager
|
|
7660
7660
|
}) {
|
|
7661
7661
|
debug11(
|
|
7662
7662
|
"handleMobbLogin: resolved URLs - apiUrl=%s (from param: %s), webAppUrl=%s (from param: %s)",
|
|
@@ -7666,8 +7666,6 @@ async function handleMobbLogin({
|
|
|
7666
7666
|
webAppUrl || "fallback"
|
|
7667
7667
|
);
|
|
7668
7668
|
const { createSpinner } = Spinner({ ci: skipPrompts });
|
|
7669
|
-
const authManager = new AuthManager(webAppUrl, apiUrl);
|
|
7670
|
-
authManager.setGQLClient(inGqlClient);
|
|
7671
7669
|
const authResult = await authManager.checkAuthentication();
|
|
7672
7670
|
if (authResult.isAuthenticated) {
|
|
7673
7671
|
createSpinner().start().success({
|
package/dist/index.mjs
CHANGED
|
@@ -12611,21 +12611,21 @@ async function getAuthenticatedGQLClient({
|
|
|
12611
12611
|
const authManager = new AuthManager(webAppUrl, apiUrl);
|
|
12612
12612
|
let gqlClient = authManager.getGQLClient(inputApiKey);
|
|
12613
12613
|
gqlClient = await handleMobbLogin({
|
|
12614
|
-
inGqlClient: gqlClient,
|
|
12615
12614
|
skipPrompts: isSkipPrompts,
|
|
12616
12615
|
apiUrl,
|
|
12617
|
-
webAppUrl
|
|
12616
|
+
webAppUrl,
|
|
12617
|
+
authManager
|
|
12618
12618
|
});
|
|
12619
12619
|
return gqlClient;
|
|
12620
12620
|
}
|
|
12621
12621
|
async function handleMobbLogin({
|
|
12622
|
-
inGqlClient,
|
|
12623
12622
|
apiKey,
|
|
12624
12623
|
skipPrompts,
|
|
12625
12624
|
apiUrl,
|
|
12626
12625
|
webAppUrl,
|
|
12627
12626
|
loginContext,
|
|
12628
|
-
loginPath
|
|
12627
|
+
loginPath,
|
|
12628
|
+
authManager
|
|
12629
12629
|
}) {
|
|
12630
12630
|
debug8(
|
|
12631
12631
|
"handleMobbLogin: resolved URLs - apiUrl=%s (from param: %s), webAppUrl=%s (from param: %s)",
|
|
@@ -12635,8 +12635,6 @@ async function handleMobbLogin({
|
|
|
12635
12635
|
webAppUrl || "fallback"
|
|
12636
12636
|
);
|
|
12637
12637
|
const { createSpinner: createSpinner5 } = Spinner({ ci: skipPrompts });
|
|
12638
|
-
const authManager = new AuthManager(webAppUrl, apiUrl);
|
|
12639
|
-
authManager.setGQLClient(inGqlClient);
|
|
12640
12638
|
const authResult = await authManager.checkAuthentication();
|
|
12641
12639
|
if (authResult.isAuthenticated) {
|
|
12642
12640
|
createSpinner5().start().success({
|