j4w8n/sveltekit-supabase-oauth

Is everyone an admin?

Closed this issue · 3 comments

How does it differentiate between authenticated user and an admin that has service_role.

j4w8n commented

I haven't built any role-based logic in. So, for the purposes of the example, anyone who can login to GitHub is an authenticated user.

I haven't built any role-based logic in. So, for the purposes of the example, anyone who can login to GitHub is an authenticated user.

aah, thanks for prompt reply.. do you know or have an idea how role based could be implemented to give admin service_role access and restrict from certain areas of the site such as admin route?

j4w8n commented

Unfortunately no. Not something I've experimented with yet.