10. Adding VueJS Login Page & Logout Button & Hard Coding Vuex/Global Authorized Flag

preview_player
Показать описание
In this video, I add a login splash page and a button to be used to log the user out of the application. I also hard code in a variable that will be used for the application components to know whether or not to show protected UI pieces.

This video is part of a playlist:

I didn't commit to the repository for each video, but the final code can be found on the Dedicated Managers GitHub public repository:
Рекомендации по теме
Комментарии
Автор

I did not have a store.js (I stared this project before this tutorial). So i created one, and everything worked up unitl I added: which is throwing the following in chrome console: "Property or method "$store" is not defined on the instance" and "TypeError: Cannot read property 'state' of undefined" I should state, I did not have Vuex installed (nor have I used it), so I npm install Vuex also. Any idea on this? Thanks for the series, it has been incredibly helpful!

TheSnakeYouCanTrust
Автор

Thank you for these videos. I implemented the auth0 functionality successfully. But, the next part that I am working on, is to directly load the auth0 login page without clicking on the login button. For example, if I type the url of the website (or localhost) it should directly take me to the auth0 login page. Please could you guide me with this? How can I call the auth0login function from the html file in vuejs without having the button functionality in the html code?

sanyuktakate
Автор

Why make a login page instead of just putting a login button on the app-bar?

aspiringpro