@Keone Martin We have faced this issue today as well. Yesterday it was fine. Today we did the deployment and we got old URLs used some time ago. I was sitting with my team for 4 hours trying to figure out the issue. It starts to work automagically in following manner:
14:00 detected wrong reply URLs and fixed the registration
14:10 no impact
14:12 added http://127.0.0.1
14:22 no impact
14:24 added http://localhost:8080. added http://localhost:8081
14:34 no impact
....
18:00 redirect uri changed to http://127.0.0.1
18:20 redirect uri changed to http://localhost:8081
18:30 i do not know what will happen next :)
It seems like there are some redirect URI caches that are not being invalidated. Officially they state 3-5 minutes: https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/error-code-aadsts50011-redirect-uri-mismatch