401 Invalid JWT Error on Edge Function Despite Removing All Auth
edge functions
Hi, I'm experiencing a persistent 401 "Invalid JWT" error when calling my Edge Function, even after completely removing authentication verification from the function code.
The Issue: - Users are authenticated (verified with supabase.auth.getUser()) - Session exists with valid access token - Edge Function returns: {"code":401,"message":"Invalid JWT"} - Even with NO auth verification in the function, still returns 401
What I've tried: Verified email provider is enabled JWT expiry set to 3600 seconds Cleared browser cache and localStorage Created fresh user accounts Tried multiple JWT verification methods Removed ALL authentication from function (still fails)
Current function code(simplified, no auth): [paste your current Edge Function code]
Has anyone experienced this? Any suggestions appreciated!
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.