You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I have an async function on my pinia store that loads user credentials,
I need to route to home page based on the credentials that I got + use the before enter hook for auth check
couldnt figure out how to do it and would appreciate help :)
Also, what is the best practice to add auth to pages? since I use file generated routes im not sure whats the best way to implement said nav guards
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I have an async function on my pinia store that loads user credentials,
I need to route to home page based on the credentials that I got + use the before enter hook for auth check
couldnt figure out how to do it and would appreciate help :)
Also, what is the best practice to add auth to pages? since I use file generated routes im not sure whats the best way to implement said nav guards
Beta Was this translation helpful? Give feedback.
All reactions