Benefit of verify JWT in edge functinos
Whats the benefit of the following option:
Since you can just use the anon key anyways, so you should asume anyone can call this function. So I feel this doesnt offer additional security, since you have to check the token yourself anyways and see if its a authenticated user. Am I missing something or is this safe to disable, since it doesnt offer any security. If so I can transition to the new api keys
4 Replies
I mean even with the
verify_jwt option anyone can call any function. It's just the execution of the function you protect and return nothing if they don't have the correct permissions.So basically all it does it check if the user has a valid anon or service key and nothing else. So as long as i have something like this, I am good right?
Kinda feel like I am missing the point of this option, but perhaps its just useless
I might have simplified what it does in what I stated. It verifies the JWT is valid too. So it's doing something along the lines of this https://supabase.com/docs/guides/auth/jwts#verifying-a-jwt-from-supabase
I see, thanks!