Edge functions 401 error flutter stripe supabase

Hello. Just want to start off and say that supabase is the best.

I need some assistance. I have created an edge function following the supabase flutter stripe docs at supabase and doing as in the GitHub repo.

What I want is that when the user signs up a customer should be created in stripe and the customer id added
To the user in the supabase db.

But for some reason I get 401 error. But I am adding the jwt to the header as in the example code.

Seems risky to turn of jwt on the edge function.
Was this page helpful?