Any method under the supabase.auth.admin namespace requires a service_role key.
These methods are considered admin methods and should be called on a trusted server. Never expose your service_role key in the browser.
Examples
Create server-side auth client
val supabase = createSupabaseClient(
supabaseUrl = "https://id.supabase.co",
supabaseKey = "supabaseKey"
) \{
install(Auth) \{
minimalSettings() //disables session saving and auto-refreshing
\}
// install other plugins (these will use the service role key)
\}
supabase.auth.importAuthToken("service_role")
// Access auth admin api
val adminAuthClient = supabase.auth.admin