Yes, the ID oauth client currently doesn’t survive a domain name change. (Other social login similarly don’t either.)
If you have access to the Rails console, you can empty the client id and secret for the discourse id settings and then toggle off/on the Enable Discourse ID setting, it will trigger a new registration. (I am on my phone now, can’t easily look up what the settings names are.