difficulty | training | chapter | tags |
---|---|---|---|
1 |
true |
Chapter 3: Advanced State Management |
vue |
In this challenge, you should refactor the useAuthUser
composable from a previous challenge to use Pinia instead.
- The app should continue function just as before.
- After login with a valid username and password, the page should redirect to the user's profile
- The profile page should show the data corresponding to the user that logged in
- The user global state should now be managed in a Pinia store instead of via a composable (including all of the functions used to get and set the state)
- You can use either a setup store or an options store (the choice is yours)
💡 HINT: The same 2 test users are available:
janedoe
andjohndoe
. They both have the passwordvueisawesome