Azure OAuthPrompt shows twice

Nick Johnson 1 Reputation point
2020-06-24T08:41:23.647+00:00

Hello everyone, I am newbie and am learning about azure-bot-service, I have spent 3 days but still have not found a solution to this problem, please everyone help

I am following this example https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/javascript_nodejs/46.teams-auth…
but i do not call command

await this.dialog.run(context, this.dialogState);  

on event onMessage

I am calling it from an API I have opened to receive requests from other services. The OmniAuth display as well, but it always shows 2 times(I can get the token). I guess the function handleTeamsSigninVerifyState has a problem.

This is my source code
10530-screen-shot-2020-06-24-at-153711.png

10631-screen-shot-2020-06-24-at-154415.png

if I call from onMessage, everything is ok.
Could someone give me any advice?
Thank you so much!

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
751 questions
{count} votes