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.