@saasquatch/mint-components 1.13.0-37 → 1.13.0-39
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/cjs/sqm-big-stat_38.cjs.entry.js +6 -6
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +6 -6
- package/dist/esm/sqm-big-stat_38.entry.js +6 -6
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-afc68848.entry.js → p-9f368ffb.entry.js} +1 -1
- package/dist/mint-components/p-d671e44e.system.js +1 -1
- package/dist/mint-components/p-d73bbafd.system.entry.js +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-81ce4741.system.entry.js +0 -1
|
@@ -2025,16 +2025,16 @@ function usePortalLogin(props) {
|
|
|
2025
2025
|
const urlParams = new URLSearchParams(index_module.jn.location.search);
|
|
2026
2026
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2027
2027
|
const googleSubmit = async (e) => {
|
|
2028
|
-
var _a, _b, _c, _d;
|
|
2028
|
+
var _a, _b, _c, _d, _e;
|
|
2029
2029
|
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
2030
2030
|
return;
|
|
2031
2031
|
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
2032
2032
|
console.log(result, "googleResult");
|
|
2033
2033
|
if (result instanceof Error) {
|
|
2034
|
-
console.log(result === null || result === void 0 ? void 0 : result
|
|
2035
|
-
console.log(
|
|
2036
|
-
if ((result === null || result === void 0 ? void 0 : result.message) || ((
|
|
2037
|
-
if (result
|
|
2034
|
+
await console.log(result === null || result === void 0 ? void 0 : result["message"], "googleResultErrorMessage2222");
|
|
2035
|
+
await console.log(result === null || result === void 0 ? void 0 : result.message, "googleResultErrorMessage");
|
|
2036
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"]))
|
|
2037
|
+
if ((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"].includes("Invalid Credentials")) {
|
|
2038
2038
|
setError(props.googleUserNotRegisteredError);
|
|
2039
2039
|
}
|
|
2040
2040
|
else {
|
|
@@ -2042,7 +2042,7 @@ function usePortalLogin(props) {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
return;
|
|
2044
2044
|
}
|
|
2045
|
-
if ((
|
|
2045
|
+
if ((_e = result.authenticateManagedIdentityWithGoogle) === null || _e === void 0 ? void 0 : _e.token) {
|
|
2046
2046
|
urlParams.delete("nextPage");
|
|
2047
2047
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2048
2048
|
index_module.jn.push(url.href);
|
|
@@ -10,16 +10,16 @@ export function usePortalLogin(props) {
|
|
|
10
10
|
const urlParams = new URLSearchParams(navigation.location.search);
|
|
11
11
|
const nextPageOverride = urlParams.get("nextPage");
|
|
12
12
|
const googleSubmit = async (e) => {
|
|
13
|
-
var _a, _b, _c, _d;
|
|
13
|
+
var _a, _b, _c, _d, _e;
|
|
14
14
|
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
15
15
|
return;
|
|
16
16
|
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
17
17
|
console.log(result, "googleResult");
|
|
18
18
|
if (result instanceof Error) {
|
|
19
|
-
console.log(result === null || result === void 0 ? void 0 : result
|
|
20
|
-
console.log(
|
|
21
|
-
if ((result === null || result === void 0 ? void 0 : result.message) || ((
|
|
22
|
-
if (result
|
|
19
|
+
await console.log(result === null || result === void 0 ? void 0 : result["message"], "googleResultErrorMessage2222");
|
|
20
|
+
await console.log(result === null || result === void 0 ? void 0 : result.message, "googleResultErrorMessage");
|
|
21
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"]))
|
|
22
|
+
if ((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"].includes("Invalid Credentials")) {
|
|
23
23
|
setError(props.googleUserNotRegisteredError);
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
@@ -27,7 +27,7 @@ export function usePortalLogin(props) {
|
|
|
27
27
|
}
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
if ((
|
|
30
|
+
if ((_e = result.authenticateManagedIdentityWithGoogle) === null || _e === void 0 ? void 0 : _e.token) {
|
|
31
31
|
urlParams.delete("nextPage");
|
|
32
32
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
33
33
|
navigation.push(url.href);
|
|
@@ -2021,16 +2021,16 @@ function usePortalLogin(props) {
|
|
|
2021
2021
|
const urlParams = new URLSearchParams(jn.location.search);
|
|
2022
2022
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2023
2023
|
const googleSubmit = async (e) => {
|
|
2024
|
-
var _a, _b, _c, _d;
|
|
2024
|
+
var _a, _b, _c, _d, _e;
|
|
2025
2025
|
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
2026
2026
|
return;
|
|
2027
2027
|
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
2028
2028
|
console.log(result, "googleResult");
|
|
2029
2029
|
if (result instanceof Error) {
|
|
2030
|
-
console.log(result === null || result === void 0 ? void 0 : result
|
|
2031
|
-
console.log(
|
|
2032
|
-
if ((result === null || result === void 0 ? void 0 : result.message) || ((
|
|
2033
|
-
if (result
|
|
2030
|
+
await console.log(result === null || result === void 0 ? void 0 : result["message"], "googleResultErrorMessage2222");
|
|
2031
|
+
await console.log(result === null || result === void 0 ? void 0 : result.message, "googleResultErrorMessage");
|
|
2032
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"]))
|
|
2033
|
+
if ((_d = (_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"][0]) === null || _d === void 0 ? void 0 : _d["message"].includes("Invalid Credentials")) {
|
|
2034
2034
|
setError(props.googleUserNotRegisteredError);
|
|
2035
2035
|
}
|
|
2036
2036
|
else {
|
|
@@ -2038,7 +2038,7 @@ function usePortalLogin(props) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
|
-
if ((
|
|
2041
|
+
if ((_e = result.authenticateManagedIdentityWithGoogle) === null || _e === void 0 ? void 0 : _e.token) {
|
|
2042
2042
|
urlParams.delete("nextPage");
|
|
2043
2043
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2044
2044
|
jn.push(url.href);
|