November 2017
Beginner to intermediate
398 pages
8h 42m
English
When the application starts, we want to check whether the user has an active session like we did in Chapter 5, Project 3 - Support Center:
actions: { async init ({ dispatch }) { await dispatch('login') }, // ... },
async function main () { await store.dispatch('init') new Vue({ ...App, el: '#app', router, store, }) } main()
Now you can log in through Google and refresh the page without being brought back to the login page.
Read now
Unlock full access