@entropic-bond/firebase 1.13.28 → 1.13.29
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.
|
@@ -47576,9 +47576,10 @@ var lT = {
|
|
|
47576
47576
|
let a = await i(e);
|
|
47577
47577
|
e.name && await qy(a.user, { displayName: e.name }), n && await Gy(a.user, { url: n }), r(await this.toUserCredentials(a.user));
|
|
47578
47578
|
} catch (e) {
|
|
47579
|
+
let { code: t, message: n } = e;
|
|
47579
47580
|
i({
|
|
47580
|
-
code: t_(
|
|
47581
|
-
message:
|
|
47581
|
+
code: t_(t.slice(5)),
|
|
47582
|
+
message: n
|
|
47582
47583
|
});
|
|
47583
47584
|
}
|
|
47584
47585
|
}) : this.login(e);
|
|
@@ -47592,9 +47593,10 @@ var lT = {
|
|
|
47592
47593
|
let i = await r(e);
|
|
47593
47594
|
n(await this.toUserCredentials(i.user));
|
|
47594
47595
|
} catch (e) {
|
|
47596
|
+
let { code: t, message: n } = e;
|
|
47595
47597
|
r({
|
|
47596
|
-
code:
|
|
47597
|
-
message:
|
|
47598
|
+
code: t === 400 ? "missingPassword" : t_(t.slice(5)),
|
|
47599
|
+
message: n
|
|
47598
47600
|
});
|
|
47599
47601
|
}
|
|
47600
47602
|
});
|
|
@@ -47607,9 +47609,10 @@ var lT = {
|
|
|
47607
47609
|
try {
|
|
47608
47610
|
await Hy($.instance.auth(), e), t();
|
|
47609
47611
|
} catch (e) {
|
|
47612
|
+
let { code: t, message: r } = e;
|
|
47610
47613
|
n({
|
|
47611
|
-
code: t_(
|
|
47612
|
-
message:
|
|
47614
|
+
code: t_(t.slice(5)),
|
|
47615
|
+
message: r
|
|
47613
47616
|
});
|
|
47614
47617
|
}
|
|
47615
47618
|
});
|
|
@@ -47628,8 +47631,9 @@ var lT = {
|
|
|
47628
47631
|
}
|
|
47629
47632
|
await Gy(a, { url: n }), r();
|
|
47630
47633
|
} catch (e) {
|
|
47634
|
+
let { code: t } = e;
|
|
47631
47635
|
i({
|
|
47632
|
-
code: t_(
|
|
47636
|
+
code: t_(t.slice(5)),
|
|
47633
47637
|
message: n
|
|
47634
47638
|
});
|
|
47635
47639
|
}
|
|
@@ -47644,14 +47648,18 @@ var lT = {
|
|
|
47644
47648
|
});
|
|
47645
47649
|
}
|
|
47646
47650
|
linkAdditionalProvider(e) {
|
|
47647
|
-
let t = lT[e]
|
|
47648
|
-
if (!
|
|
47649
|
-
|
|
47651
|
+
let t = lT[e];
|
|
47652
|
+
if (!t) throw Error(`Provider ${e} doesn't support link`);
|
|
47653
|
+
let n = t(), r = $.instance.auth().currentUser;
|
|
47654
|
+
if (!r) throw Error("There is no logged in user");
|
|
47655
|
+
return Qb(r, n);
|
|
47650
47656
|
}
|
|
47651
47657
|
unlinkProvider(e) {
|
|
47652
|
-
let
|
|
47653
|
-
if (!t) throw Error(
|
|
47654
|
-
|
|
47658
|
+
let t = lT[e];
|
|
47659
|
+
if (!t) throw Error(`Provider ${e} doesn't support unlink`);
|
|
47660
|
+
let { currentUser: n } = $.instance.auth();
|
|
47661
|
+
if (!n) throw Error("There is no logged in user");
|
|
47662
|
+
return Py(n, t().providerId);
|
|
47655
47663
|
}
|
|
47656
47664
|
async toUserCredentials(t) {
|
|
47657
47665
|
if (!t) throw Error("The user in user credentials is not defined");
|