diff --git a/src/App.vue b/src/App.vue
index f4ea6b9..0d1ce00 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -22,6 +22,9 @@
About
+
+ Logout
+
@@ -46,6 +49,12 @@
components: {
TopNav,
},
+ methods: {
+ logout() {
+ store.dispatch('userLogout')
+ .then(() => this.$router.push({ name: 'login' }));
+ }
+ },
// pre-route auth checking
beforeRouteEnter(to, from, next) {
// if user is authenticated, continue