1
First user created should have service_role
Source: supabase/supabase#20083 · opened by @dsl400
Why is user management such a big problem ?
I spent some time researching on how to
• create an admin account
• register new user from an admin account
• update another user from an admin account
• delete a user from an admin account
None of these basic features are straight forward when using supabase.
A simple solution to solve this is "situation" is a method to asign service_role to a regular user and reuse the JWT token of the currently authenticated user when using supabase.auth.admin.getUserById(...)
I spent some time researching on how to
• create an admin account
• register new user from an admin account
• update another user from an admin account
• delete a user from an admin account
None of these basic features are straight forward when using supabase.
A simple solution to solve this is "situation" is a method to asign service_role to a regular user and reuse the JWT token of the currently authenticated user when using supabase.auth.admin.getUserById(...)
No pledges yet. Be the first to back this.
Comments
Similar requests
Adding custom API keys with selectable Postgres role for backend components
1 vote · 0 comments
Add a scoped, read-only metrics / monitoring API key (alternative to service_role)
7 votes · 0 comments
Add a 'Post User Creation' auth hook (or 'After User Creation')
8 votes · 0 comments
Configure External PostgreSQL for Supabase Instead of supabase-db
3 votes · 0 comments
the supabase_apikeys terraform data source should return publishable and secret keys
4 votes · 0 comments
No comments yet.