As I continue to hone my skills in VueJs, I am experimenting with creating sample applications. Currently, I am working on a straightforward app that features a login page where users input their credentials to access their profile. However, I am struggling to find a method to prevent unauthorized users from viewing the profile section by manually changing the URL to /profile.
This application is quite basic, utilizing only JavaScript and Bootstrap.
Is there a way to automatically redirect users back to the login page if they are not logged in and attempt to access the profile page?