Updating Secrets using Scheduled Functions

Hello there,
I am trying to run an updateSecret function every hour by using the job scheduler. I have confirmed that the job runs but returns a 403 Permission Denied error. When I run the function while I preview and view the site, however, the same update function works just fine. I was wondering if there is some sort of permissions barrier than I’m missing out on? I am calling the wix-secrets-backend API from the Backend like I should be, and the function only returns the 403 error when it is triggered via scheduled job. Please advise.