Hey everyone. I hope you are doing fine.
Same here: 2FA on Docker Hub works fine, getting ‘access denied’ when entering via Desktop app.
Running on Windows 10 Enterprise 21H1 (Build 19043.1165) with Windows Feature Experience Pack 120.2212.3530.0 + Docker Desktop
Docker version 20.10.7, build f0df350 on Powershell
I was able to fix it after realising I need to use Personal Access Token for GUI program on Windows as well instead of 2FA code. You can create it here (Docker Hub).
I hope I solved your issue.