18.10 Navigation Guards - Protect Routes when Logged Out

This commit is contained in:
Fredrick W. Warren 2021-02-13 20:18:51 -08:00
parent 60f0dcf11a
commit 492ecb3e3e

View File

@ -1,3 +1,4 @@
import { LocalStorage } from 'quasar'
import { firebaseAuth } from 'boot/firebase'
const state = {
@ -7,6 +8,7 @@ const state = {
const mutations = {
setLoggedIn (state, value) {
state.loggedIn = value
LocalStorage.set('loggedIn', value)
}
}