Hello, I work on a large multi-tennant saas social media platform, built in C# with our own Twitter REST API layer. The system allows read and write access to Twitter on behalf of the users via persisted Oauth credentials.
We’ve experienced an issue where users with valid OAuth credentials stored are consistently returned a 401 Unauthorized error when attempting to access the Mentions endpoint. What seems to solve the issue is the user logging into Twitter website, visiting the settings area and simply re-saving their profile (without making changes).
This happened to one specific user 5 days ago (I made a post about it then which had no response, https://dev.twitter.com/discussions/7557). The problem has came back today, and re-saving the profile solved the issue immediately.
I’ve read through the OAuth checklist and specifications link that’s provided in many of the replies here and it hasn’t given any useful information to me.
The next time this issue happens, what information can I log to help the troubleshooting process? Are there any special tasks I should complete that will help diagnosis?
Thank you for your time