mirror of
https://github.com/kevin-DL/comedy-video-lib.git
synced 2026-01-11 19:04:27 +00:00
- Got a page design from TailwindUI - Added to the default layout - Added a header to the home page
26 lines
503 B
Vue
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>
|