
@Freya ,
Welcome to Q&A forum!
To better analyze this issue, I have the following information and would like to confirm with you.
- When did this issue start? Are there any error messages?
- What kind of long code? Does it include the computer name?
Could you describe it in detail or share a screenshot wiht us? Please cover up your private information.
Please try the following steps to check this issue.
- Search "credentials" in Start, and then select Credentials Manager.
- Select the Windows Credentials tab.
- Under Generic Credentials, look for any entries containing “OneDrive Cached Credentials” and remove them.
- Restart OneDrive.
If the above do not work, pelase try resetting OneDrive.
Any updates, please let me know.
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.