As mentioned by soumi-MSFT, we will need a bit more information from you to be able to better diagnose this. Please send the details and fiddler traces to the email address provided (AzCommunity@microsoft.com), and we will follow up with you.
Also, just based off of the information you provided, it's possible that there's an issue with your app registration settings. Make sure that the Redirect URI in your tenant app registration matches what you have in your code, and that the other values such as client ID and tenant ID also match.
Once you have reached a resolution, please share it with the community so that others with similar questions can more easily find an answer.