@edgedev/firebase 1.5.7 → 1.5.9
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/edgeFirebase.ts +3 -5
- package/package.json +1 -1
package/edgeFirebase.ts
CHANGED
|
@@ -274,7 +274,6 @@ export const EdgeFirebase = class {
|
|
|
274
274
|
this.user.uid = null;
|
|
275
275
|
this.user.loggedIn = false;
|
|
276
276
|
this.user.logInError = false;
|
|
277
|
-
this.user.logInErrorMessage = "";
|
|
278
277
|
}
|
|
279
278
|
});
|
|
280
279
|
};
|
|
@@ -689,24 +688,23 @@ export const EdgeFirebase = class {
|
|
|
689
688
|
|
|
690
689
|
// Composable to login and set persistence
|
|
691
690
|
public logIn = (credentials: Credentials, isPersistant = false): void => {
|
|
691
|
+
this.user.logInErrorMessage = "Initial Click"
|
|
692
692
|
try {
|
|
693
693
|
this.logOut();
|
|
694
|
+
this.user.logInErrorMessage = "After Logout"
|
|
694
695
|
let persistence: Persistence = browserSessionPersistence;
|
|
695
696
|
if (isPersistant) {
|
|
696
697
|
persistence = browserLocalPersistence;
|
|
697
698
|
}
|
|
698
699
|
setPersistence(this.auth, persistence)
|
|
699
700
|
.then(() => {
|
|
701
|
+
this.user.logInErrorMessage = "After Persistence"
|
|
700
702
|
signInWithEmailAndPassword(
|
|
701
703
|
this.auth,
|
|
702
704
|
credentials.email,
|
|
703
705
|
credentials.password
|
|
704
706
|
)
|
|
705
707
|
.then(() => {
|
|
706
|
-
this.user.email = "";
|
|
707
|
-
this.user.uid = null;
|
|
708
|
-
|
|
709
|
-
this.user.loggedIn = false;
|
|
710
708
|
this.user.logInError = false;
|
|
711
709
|
this.user.logInErrorMessage = "Login Sent to Firebase"
|
|
712
710
|
})
|