When attempting to sign in to the application using personal accounts (such as Outlook or Xbox), we have encountered the following error message:
"Selected user account does not exist in tenant 'smartqed.com' and cannot access the application '8a84642a-0168-48f7-87c3-1255d6502fc2' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account."
We have noted that a similar application, registered with a non-verified sandbox Azure Domain "onmicrosoft.com,", which we used to test our application throughout the development is functioning correctly and redirecting the user to the consent page. Both applications share identical configurations and permissions.
This issue happened after we migrated our application to our organizational domain directory which has a verified domain.
URLs we use:
https://login.microsoftonline.com/common/login/oauth2/code/azure
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=8a84642a-0168-48f7-87c3-1255d6502fc2&response_mode=form_post&response_type=code&scope=openid%20offline_access%20profile%20https://graph.microsoft.com/User.Read&state=7PmXPyc8Blx_NoE3qKyheyY3rw8-C-edhp-FKPoYtEI%3D&redirect_uri=https://a568-103-121-26-217.ngrok-free.app/login/oauth2/code/azure&prompt=consent&nonce=t-FojwOIUVmy0JUuri7v7ec0WIVZDGAV20F9L6j4ipw
