Supabase service_role_key not bypassing RLS

I am running supabase locally and using supabase kt (kotlin). I am using the 'Secret key' that is generated when starting supabase locally. I am creating my client with the same key but am continuously receiving "Permission denied" errors aka 42501. Am i using the wrong key? How can i fix this.

private val client = createSupabaseClient(SUPABASE_URL, SERVICE_ROLE_KEY) { install(Functions) install(Postgrest) install(Auth) }
Was this page helpful?