Good afternoon! Could someone help me out?
Yesterday I was trying to implement an Edge Function to create orders in a payment gateway (ASAAS), but I keep getting a 401 response from Supabase. I removed the part of the function that connects to the gateway and tried calling just a Hello World function, but the result is the same.
Through the Supabase dashboard, I’m able to call the function successfully, but when running it locally or calling it from my UAT or production frontend, I always get a 401 — even though my frontend is sending both the token and the apiKey.