I wanna run scheduled job on one of my api. All of my api are authenticated that means they expect a Bearer token as Authorization, which is dynamically generated by firebase auth everytime we hit the api from the app. Suppose I wanna run app.get("/hi", fn(req, res)), lets say 1 times a day. How to run it?
Currently I tried using google cloud scheduler and google cron jobs. But the problem with both of them is that they cannot carry dynamic headers with them. Is there a way I can generate dynamic bearer auth token and send it as header in the cron job request. Or can service account be useful here? or is there any alternative other than cron jobs and google cloud scheduler?