The cron job problem. #29265
-
hello, everyone! @GaryAustin1 and team, I have the I use this format before but I don't want to use now because I'm
Now I enabled the RLS and selected the But I'm not understanding how to run the cron job now? If I paste here the than the cron job also failed may be because I'm passing the And if I pass the service role key than the edge function will invoke with both the so some how I want a secure table as well as cron job! thanks for time! please give your suggestions. I'm trying to solve this for long time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 16 replies
-
Your description does not make much sense. Then your edge function sets the createClient as you desire to make calls to Supabase. You could pass in another header with a secret_key you make up in the cron task and check for that in the edge function. Or you could pass in the service_role key and then check for that in the authorization header to keep anon key from executing the function. |
Beta Was this translation helpful? Give feedback.
Your cron job if that is the service_role key seems fine.
https://supabase.com/docs/guides/functions/auth