Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Vue Fullstack > Lesson 68

Logging out via the UI

In this video, we're going to create a UI feature to allow a user to log out. So you'll see in the nav bar here we have a "sign in or register" link. So our strategy will be to change that to a "logout link" conditional on the user being logged in.

Coming over to the relevant component, which is the StickNav, let's being by putting a div above the login link div. We'll add a v-if to this one, and we'll call the check method of the Vue Auth API.


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom