Could you please check the redirect URI from your azure portal, If your app is single page application then you can add homepage ( localhost ) URI
Steps to Add redirect URI from azure portal
Azure Portal > Azure Active Directory > App Registrations > Search the application by using App ID or Name > open the app and click on authentication blade > update the Redirect URI.
Hope this helps
Thanks