A Microsoft file hosting and synchronization service.
Hi Rudi Potgieter,
Welcome to Microsoft Q&A Forum! Have a good day and I hope you're doing well!
I completely understand how frustrating this is.
Before we dive into technical fixes, have you tried signing into OneDrive via a web browser? If you can sign in successfully on the web, it confirms your account is active and the issue is strictly isolated to the OneDrive app on your new Mac.
I see you’ve already been quite thorough by clearing out the Keychain Access entries and running some Terminal commands to flush caches, yet the issue persists.
However, since you mentioned using Terminal, I just want to double-check one specific detail: Did you specifically run the official ResetOneDriveApp.command script hidden inside the app bundle?
Based on my research, especially with migrated data causing token conflicts, opting to reset the OneDrive app using this internal tool is often the best way to resolve the "Invalid STS request" error.
Note: This process will sign you out completely and re-initialize the app. While your data on the cloud is safe, please make sure you’ve taken a backup of your local OneDrive folder just to be safe.
Here is how to reset the app to its original state:
- Open Finder and go to the Applications folder in the left sidebar.
- Locate the OneDrive icon.
- Right-click (or Control + Click) on OneDrive and select Show Package Contents.
- Open the Contents folder.
- Open the Resources folder.
- Look for a file named
ResetOneDriveApp.command(orResetOneDriveAppStandalone.command). - Double-click the file to run it.
Please note: A black window (Terminal) will pop up and run several lines of code. Please wait until it finishes. Once done, the OneDrive icon in the top menu bar might disappear, and you can try opening the app to sign in again.
I hope this helps resolve the issue. If the issue still persists or if I was unclear about anything, please feel free to reach out anytime.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.