mirror of
https://github.com/kevin-DL/comedy-video-lib.git
synced 2026-01-14 03:54:45 +00:00
- Installed magic-sdk - Created a login button with email - Store the token and user login state in the vuex store - Created a logout method that resets the store
14 lines
221 B
JavaScript
14 lines
221 B
JavaScript
export const state = () => ({
|
|
token: null,
|
|
loggedIn: false,
|
|
})
|
|
|
|
export const mutations = {
|
|
setToken(state, token) {
|
|
state.token = token
|
|
},
|
|
setLoggedIn(state, loggedIn) {
|
|
state.loggedIn = loggedIn
|
|
},
|
|
}
|