Fixed the issue for me by changing "Use credential providers" in nuget settings to "Nuget/.NET ...r integrated". changes in settings
Lastly restart Rider.
I hope this helps.