I am following this example 46.teams-auth
But I do not call command
await this.dialog.run(context, this.dialogState);
on event onMessage

bot.js
async handleTeamsSigninVerifyState(context, state) {
await this.dialog.run(context, this.dialogState);
}
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. The first time I click and sign in, but after that, it shows again and I have to click button login again. Then I get the token. I guess the function handleTeamsSigninVerifyState has a problem.
if i call that function within onMessage it will work well
bot.js
this.onMessage(async (context, next) => {
await this.dialog.run(context, this.dialogState);
await next();
});
Steps to reproduce the behavior:
After editing the code as above,
The OAuthPrompt shows one time and gets the token

I have spent 4 days but still have not found a solution to this problem, please help me.
[bug]
You've changed the sample bot beyond what I'm seeing here and I'm having trouble repro'ing what you're doing. Can you post the entirety of both your index.js and your dialogBot.js?
Excellent. Thank you for your patience while I look into this.
Your dialogBot.js and dialogBase.js are identical. Do you have 2 separate files, or did you rename dialogBot to dialogBase? I want to make sure I can repro this correctly.
@jwiley84 Oh, Sorry, I updated that file. Have a nice weekend.
@jwiley84 Could you please help me take a look that code?
Hi @tamnguyen39 The files baseDialog.js and dialogBot.js are still identical.
@jwiley84 I'm so sorry, I updated. Please help me check it again. 馃檱
@jwiley84 To save your time
I've created this repo and add steps to reproduce the bug
Please take a look.
Many thanks. 馃檱
Excellent, thank you for the repo. I'll go ahead and test this now, see what's going on.
@jwiley84 Thank you very much. If you discover something or have difficulty reproducing it, please let me know. 馃檱
I am very happy to be able to announce that the issue has been resolved with the help of MS
So, the solution is:
await myBot.run(turnContext);await myBot.dialog.run(turnContext, myBot.dialogState);And use event this.onEvent
I hope this comment will help someone