Flutter: Auth Admin | Supabase Docs (original) (raw)
Any method under the
supabase.auth.admin
namespace requires aservice_role
key.These methods are considered admin methods and should be called on a trusted server. Never expose your
service_role
key in the Flutter app.
Examples
Create server-side auth client
final supabase = SupabaseClient(supabaseUrl, serviceRoleKey);