how to add additional data to the user with supabase signUpWithPassword in Nuxt?
how to add additional data to the user with supabase signUpWithPassword in Nuxt?
3 Replies
No . I want to have an admin middleware that checks if the user is an admin or not and redirects to the homepage if not, but i have no idea how should I do this bc I dont want to store any secret data like user role in a pinia userStore .
I don't think user role somehow secret or sensitive data.
Anyway middleware need to access user roles in order to check permissions.