Thanks for posting your question in the Microsoft Q&A forum.
In the Azure portal, navigate to your application's registration page. Under the "Supported account types" section, select "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)". This allows users from any tenant to sign in to your application.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful