Writing to RLS-enabled table fails even with Service Key
Any idea why this happens?
const supabase = createClient(
'process.env.DB_URL,
process.env.SUPABASE_SECRET_KEY
)
const { data, error } = await supabase
.from('user_tokens')
.insert([{ token_read_key: code, token: session.access_token }])
error: new row violates row-level security policy for table