Integrate Firestore database

This commit is contained in:
2022-10-19 21:10:49 +02:00
parent e582a1ab41
commit da9f105825
5 changed files with 72 additions and 19 deletions

View File

@@ -18,9 +18,11 @@ export default {
this.$store.commit('initFirebase')
if (user) {
// User is signed in; redirect to main page (dashboard)
this.$store.commit('setUserLoggedIn', true)
this.$router.push({ name: 'dashboard' })
} else {
// User is signed out; redirect to login page
this.$store.commit('setUserLoggedIn', false)
this.$router.push({ name: 'login' })
}
})