Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 8cd6084

Browse files
authored
fix teams verify state handler in OAuthPrompt (#518) (#519)
1 parent 1c08219 commit 8cd6084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ async def _recognize_token(self, context: TurnContext) -> PromptRecognizerResult
278278
if OAuthPrompt._is_token_response_event(context):
279279
token = context.activity.value
280280
elif OAuthPrompt._is_teams_verification_invoke(context):
281-
code = context.activity.value.state
281+
code = context.activity.value["state"]
282282
try:
283283
token = await self.get_user_token(context, code)
284284
if token is not None:

0 commit comments

Comments
 (0)