snow-flow 10.0.87 → 10.0.88
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/package.json
CHANGED
|
@@ -1068,6 +1068,21 @@ function DialogAuthEnterprise() {
|
|
|
1068
1068
|
|
|
1069
1069
|
if (!response.ok) {
|
|
1070
1070
|
const err = await response.json().catch(() => ({}))
|
|
1071
|
+
if (err.billingUrl) {
|
|
1072
|
+
toast.show({
|
|
1073
|
+
variant: "error",
|
|
1074
|
+
message: err.message || err.error || "Subscription required",
|
|
1075
|
+
duration: 8000,
|
|
1076
|
+
})
|
|
1077
|
+
toast.show({
|
|
1078
|
+
variant: "info",
|
|
1079
|
+
message: "Opening billing page...",
|
|
1080
|
+
duration: 4000,
|
|
1081
|
+
})
|
|
1082
|
+
tryOpenBrowser(err.billingUrl)
|
|
1083
|
+
setStep("code")
|
|
1084
|
+
return
|
|
1085
|
+
}
|
|
1071
1086
|
throw new Error(err.error || "Verification failed")
|
|
1072
1087
|
}
|
|
1073
1088
|
|
|
@@ -1889,6 +1904,21 @@ function DialogAuthEnterpriseCombined() {
|
|
|
1889
1904
|
|
|
1890
1905
|
if (!response.ok) {
|
|
1891
1906
|
const err = await response.json().catch(() => ({}))
|
|
1907
|
+
if (err.billingUrl) {
|
|
1908
|
+
toast.show({
|
|
1909
|
+
variant: "error",
|
|
1910
|
+
message: err.message || err.error || "Subscription required",
|
|
1911
|
+
duration: 8000,
|
|
1912
|
+
})
|
|
1913
|
+
toast.show({
|
|
1914
|
+
variant: "info",
|
|
1915
|
+
message: "Opening billing page...",
|
|
1916
|
+
duration: 4000,
|
|
1917
|
+
})
|
|
1918
|
+
tryOpenBrowser(err.billingUrl)
|
|
1919
|
+
setStep("code")
|
|
1920
|
+
return
|
|
1921
|
+
}
|
|
1892
1922
|
throw new Error(err.error || "Verification failed")
|
|
1893
1923
|
}
|
|
1894
1924
|
|