Solution - Sync code invalid error on Windows

This is not a support request, but a solution to a Brave sync failure that I hope will help others. Hope the admins will let this post stay, because I didn’t find a solution anywhere on the community for this issue.

Brave version - 1.21.73 (latest as of 3/4/21); Windows 10 20H2

I had a “sync code invalid” error despite the code being valid [checked with another desktop and mobile device on the same sync chain]. Turns out that the issue was with the Windows Credential Manager (Error code 0x80090345) which was also causing a “Trusted platform module error” with Outlook 365 and Onedrive credential storage.

The solution turns out to be a registry fix, which fixed all three issues (O365, Onedrive and Brave sync). Briefly –

  1. Open Regedit and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb
  2. Create a DWORD 32bit value and name it ProtectionPolicy.
  3. Set DWORD value to 1.
  4. Reboot

Source: https://itmhelpdesk.rmagroup.net/knowledgebase.php?article=306

1 Like

@ugachmaaz,
Thank you for reporting this and good work tracking down the root issue. I’ve forwarded this information to Sync team for review.