@SRIJAN decided to host a standalone nodejs express app in the end. But problem is I'm not really active at indian trading hours. So if I refresh the token at around 12am to 3am midnight. Will it work for the next 24 hours?
I mean if for some reaso…
So basically everytime I call generateSession the token expires. I guess it's not really possible to do that in firebase cloud functions as everytime we call a function, it resets everything (As per my knowledge).Please lemme know if I'm wrong.
@SRIJAN the token only works for once, when I start a session by loading the url again, it gives the "Token is invalid or has expired." error.
Here's the cloud function code I'm testing...
exports.tradeOnZerodha = functions.https.onRequest(async (…