Hi, I'm using webhooks to see when users create new activities. This is to then be able to retrieve each activity's stream in real time.
The problem, however, is that if the user is not logged in to my app when I get my webhook, I cannot run the request required to retrieve more information about the user's activity, as I do not save the user's accesToken and refreshToken in my database, unless it is saved via local storage.
What I can do is save the id of the activities that have been created sometimes the user has not been active on my app in my mysql database, and then when the user logs in again, I get all the streams then.
The problem with that is above all that it won't be realtime. But the other problem is that the rate limits do not allow me to send requests to get these streams from all assets if there are x number.
Of course, I can always split it up and wait 15 minutes between each request if I take 10 or 20 at a time, but then it's not certain that the user is still there.