Share via

Onedrive signin error on Macbook Air - AADSTS90023: Invalid STS request

Rudi Potgieter 0 Reputation points
2026-02-20T12:30:42.4533333+00:00

I changed machines yesterday and can't sign into OnDrive on my new MacBook Air. I have tried all the fixes listed online around deleting keychain entries, running terminal commands etc. nothing works.

Apple M4

Tahoe 26.3 (25D125)

Would really appreciate any advice

Microsoft 365 and Office | OneDrive | For business | MacOS

2 answers

Sort by: Most helpful
  1. Anonymous
    2026-02-20T13:53:49.3633333+00:00

    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: 

    1. Open Finder and go to the Applications folder in the left sidebar. 
    2. Locate the OneDrive icon. 
    3. Right-click (or Control + Click) on OneDrive and select Show Package Contents
    4. Open the Contents folder. 
    5. Open the Resources folder. 
    6. Look for a file named ResetOneDriveApp.command (or ResetOneDriveAppStandalone.command). 
    7. 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.  

    Was this answer helpful?


  2. AI answer

    2026-02-20T12:30:53.3666667+00:00

    The error code AADSTS90023 typically indicates an issue with the authentication request when signing into OneDrive. Here are some steps you can try to resolve the issue:

    1. Verify Account Type: Ensure that you are using the correct Microsoft account (personal or work/school) that is associated with your OneDrive.
    2. Clear Cache and Cookies: Sometimes, cached data can cause issues. Clear your browser's cache and cookies if you are signing in through a web browser.
    3. Check Network Connection: Make sure your MacBook Air is connected to the internet and that there are no network issues that could be affecting the sign-in process.
    4. Update OneDrive: Ensure that you are using the latest version of OneDrive. Check for updates in the App Store or through the OneDrive application.
    5. Reinstall OneDrive: If the above steps do not work, try uninstalling and then reinstalling the OneDrive application on your Mac.
    6. Check for System Updates: Make sure your macOS is up to date, as updates can fix bugs and improve compatibility.

    If these steps do not resolve the issue, consider reaching out to Microsoft Support for further assistance.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.