Have you tried regenerating it after you changed the domain? At /admin/config/login-and-authentication/discourse-id there is a button to do that
If that doesn’t help, the steps described in this topic should help: Changing domain names prevents Discourse ID from working
