@edgedev/firebase 1.5.8 → 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 -0
- package/package.json +1 -1
package/edgeFirebase.ts
CHANGED
|
@@ -688,14 +688,17 @@ export const EdgeFirebase = class {
|
|
|
688
688
|
|
|
689
689
|
// Composable to login and set persistence
|
|
690
690
|
public logIn = (credentials: Credentials, isPersistant = false): void => {
|
|
691
|
+
this.user.logInErrorMessage = "Initial Click"
|
|
691
692
|
try {
|
|
692
693
|
this.logOut();
|
|
694
|
+
this.user.logInErrorMessage = "After Logout"
|
|
693
695
|
let persistence: Persistence = browserSessionPersistence;
|
|
694
696
|
if (isPersistant) {
|
|
695
697
|
persistence = browserLocalPersistence;
|
|
696
698
|
}
|
|
697
699
|
setPersistence(this.auth, persistence)
|
|
698
700
|
.then(() => {
|
|
701
|
+
this.user.logInErrorMessage = "After Persistence"
|
|
699
702
|
signInWithEmailAndPassword(
|
|
700
703
|
this.auth,
|
|
701
704
|
credentials.email,
|