Auth.getUser() can not find user in edge function

I'm trying to delete user via edge function, but auth.getUser() returns null everytime. I've checked that req.headers.get("Authorization") is correct

Invoking:

    await supabase.functions.invoke("user-self-deletion");
Was this page helpful?