Any method under the supabase.gotrue.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(GoTrue) \{
autoLoadFromStorage = false
alwaysAutoRefresh = false
\}
// install other plugins (these will use the service role key)
\}
supabase.gotrue.importAuthToken("service_role")
// Access auth admin api
val adminGoTrueClient = supabase.gotrue.admin