Overview
Occasionally, you may see an email from us saying that "Your token for CircleCI was revoked by GitHub, we need you to log back in...". This issue may arise due to changes in your GitHub settings, network issues, or upstream problems from GitHub. When your OAuth token is revoked, CircleCI temporarily unfollows you from your projects, which can halt your builds.
Re-authenticating your account is essential to restore functionality.
Prerequisites
Access to your CircleCI and GitHub accounts.
Ability to clear your browser's cache and cookies.
Instructions
You simply need to fully reauthenticate, and this issue should stop occurring
Sign Out of CircleCI: Log out of your CircleCI account to begin the re-authentication process.
Revoke CircleCI's Access in GitHub:
Go to your GitHub account settings.
Navigate to "Applications" and find CircleCI.
Revoke CircleCI's access.
Clear Browser Cache and Cookies:
Clear your browser's cache and cookies to ensure no old session data interferes with the process.
Sign Back into CircleCI: Log back into your CircleCI account to initiate a new session.
Refresh Permissions:
Go to CircleCI user settings.
Refresh your permissions to ensure CircleCI has the necessary access.
Solution
Following these steps should resolve the OAuth token revocation issue and restore your project builds. If problems persist, consider disabling browser extensions or trying a different browser or device. For further troubleshooting, creating a HAR file to capture network traffic can be helpful.