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?
No description
3 Replies
garyaustin
garyaustin4h ago
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.
silentworks
silentworks3h ago
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.

Did you find this page helpful?