Skip to content

serhii-chernenko/vue3-auth-composable

Repository files navigation

difficulty training chapter tags
1
true
Chapter 3: Advanced State Management
vue

useAuthUser Composable Challenge

In this challenge, there is a bug preventing the login form from redirecting to the user's profile page after successful login. Your task is to figure out why the bug exists and fix it!

Requirements

  1. The app should continue to use the useAuthUser composable to keep up with the logged in user's data
  2. After login with a valid username and password, the page should redirect to the user's profile
  3. The profile page should show the data corresponding to the user that logged in

💡 HINT: There are 2 available users to test with: janedoe and johndoe. They both have the password vueisawesome

Screenshot of the solution