I am to understand that any user information in the browser is hackable.
the reason i as is that my api returns a user.profile.role value which is based on an enumerated object [USER, ADMIN] in the database. I am trying to restrict access to /admin routes.
i store the user.profile object in the Pinia user store. I want to prevent hacks. is it better to make another api call to get the role? Thoughts?