I’m maintaining a relatively big Discord-bot, that offers you the opportunity to get premium features via donating on Patreon.
I’m currently handling that via multiple OAuth2 requests and storing the access- and refresh-tokens in a database. The data is getting refreshed every hour in order to have the correct information about the pledge-status. Now it could happen that the application that handles the data gets disconnected or restarted due to connection issues or server restarts etc which often ends in invalid tokens. Then I need to delete all data and the patrons need to relink their accounts - and that is quite annoying.
Now I’m asking you guys for helping me finding a simple way to handle that!
Thank you so much, Rxsto