The Discourse ID cannot be used after changing the forum domain

After I changed my website domain from discourse.wuyuan.dev to kernyr.wuyuan.dev, I found that I was unable to update the discourse ID information; it kept showing an error message.

The requested redirect uri is malformed or doesn’t match client redirect URI.

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

Regenerating the credentials didn’t work, but the method in that post did. Thank you for finding it for me.