Azure credentials wrong after deploying with Azure CLI
Hello I created 2 bots with Bot Framework Composer and I have been successfully testing them on Composer, Emulator and ngrok. I also have been successfully publishing them to Azure initially with the Publish function on Composer but now with a CI/CD pipeline on an Azure project.
My problem is that, in trying to implement a feature, I wanted to determine if it would be better if we switched over to a Bot Framework SDK bot should it be easier to implement and relatively easy to do all the work we've previously done on it. After following this https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-deploy-basic-bot?view=azure-bot-service-4.0&tabs=csharp%2Cuserassigned exactly (for Javascript Bot), I was successfully able to implement the feature and deploy the bot to Azure. However, when I tried to test my Composer bots locally again, they no longer were working. Moreover, when I went to the Azure Bot resource for these two bots and I click Manage on their app ID's Azure gives me an error saying the apps couldn't be found. It keeps giving me an error saying that the App ID and password are not found on the tenant. When I try to publish the bots using composer, I get prompted to log in and then it tells me my tenant xxxx is not found. What is strange is that the tenant ID the error is telling me cannot be found is not my home tenant neither my other tenant (I only have two tenants confirmed).
Additionally, I cannot even test the SDK bot locally anymore either (neither on emulator or on ngrok) because of a 401 error (but I can deploy and test it on Azure with the same Azure CLI commands that messed up my Azure credentials). It keeps telling me the app ID and password are incorrect when I know them to be true because I queried this endpoint https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token?= with the exact same app ID and password and it came back successful.
I think the Azure credentials stored on my computer or stored somewhere locally is messing up all my bots. I've tried clearing the cookies, cache and storage on Composer, deleting the contents of .azure dir and az logout but nothing has helped. Azure doesn't even give me the chance to specify what directory or tenant I want to choose when it prompts me to login. Whenever I login, it just assumes this weird tenant ID I've never seen before. Please help me. I cannot test any of the bots (composer or sdk) locally because of these sign in issues.