How do I add for a cron?
I've added the auth header but it doesn't seem to make the cron work (I still get 401s)
do I need to change the token?

3 Replies
Edge function JWT verification can't be used with sb keys.
You have to pass a JWT like the old service role key (which is still valid when using new API keys.
Or turn off the JWT validation and handle yourself.
Understanding API keys | Supabase Docs
First-layer protection for your project's data
I'd suggest you go with option 2 of what Gary suggested as this won't break or require you to rewrite when they finally turn off the old service role key.