Files
comedy-video-lib/components/Navbar.vue
Kevin ANATOLE cbdd40cb5a Home Page
- Got a page design from TailwindUI
- Added to the default layout
- Added a header to the home page
2020-11-08 17:21:45 +00:00

26 lines
503 B
Vue

<template>
<div></div>
</template>
<script>
export default {
name: 'Navbar',
data() {},
methods: {
async logout() {
await this.$magic.user.logout()
this.$store.commit('auth/setToken', null)
this.$store.commit('auth/setLoggedIn', false)
},
async login() {
const token = await this.$magic.auth.loginWithMagicLink({
email: this.email,
})
this.$store.commit('auth/setToken', token)
},
},
}
</script>
<style lang="scss" scoped>
</style>