Supabase edge function returns 401 "Invalid JWT" after switching to the new API keys: the safe fix
You switched your app from the old eyJ… anon key to the new sb_publishable_… key (Supabase retires the old keys by the end of 2026), and now your edge functions answer every call with: 401 {"message":