Docker Login fails with 403 and 'unexpected end of JSON input' errors

“docker login” started failing with 403 errors and an empty response (evidenced by ‘unexpected end of JSON input’) (On Windows)

C:>docker -v
Docker version 19.03.13, build 4484c46d9d

C:>docker login registry.gitlab.com -u
Password:

I’ve tried adding /v1 and /v2 to the call, and tried it on 2 different computers, and always get the same results.

This was working fine until just the past couple of days.

I had recent Docker Desktop updates on both machines, but am not certain whether the onset of the failure coincided with the updates or not.

Anyone have any ideas about what might be wrong and how to work around it?