diff --git a/src/components/User/UserSidebar.vue b/src/components/User/UserSidebar.vue
index c142929..e14e69e 100644
--- a/src/components/User/UserSidebar.vue
+++ b/src/components/User/UserSidebar.vue
@@ -15,7 +15,9 @@
Profile
Settings
-
+
+
+
@@ -62,6 +64,11 @@
// clear input field
this.tweet = ''
})
+ },
+ logout () {
+ localStorage.removeItem('tweetr-token')
+
+ this.$router.push('/login')
}
}
}