Hi Deca, Thanks for posting here in Microsoft community, this issue with Bing Webmaster Tools OAuth refresh tokens expiring quickly even when refreshed correctly is likely due to refresh token rotation, each refresh token is single use. once you use it, it’s invalidated and replaced with a new one, if you accidentally reuse an old token (even once), it triggers an invalid_grant error, Microsoft enforces this strictly to prevent security issues like replay attacks.
This might cause by race conditions, Multiple processes trying to refresh at the same time and token not saved properly, If the new refresh token isn’t stored immediately, your app might keep using the old one.
The best way is always storing the new refresh token right after a successful refresh and use a lock or mutex to prevent concurrent refresh attempts, if a refresh fails with invalid_grant, prompt the user to reauthorize.
To keep the connection alive without daily reauth, make sure your app handles token rotation carefully and avoids reusing old tokens.
I hope this helps you. Let me know if you need more help.
Chard