Bot Framework Connector refresh MS Graph token

Benoit Dupont 61 Reputation points
2023-01-17T14:23:33.4933333+00:00

Hello,

I'm building a Teams Bot using the Bot Framework REST API.

I can send a OAuthCard to the user to sign in and get the magic code back and exchange it for a Microsoft Graph token. Everything is working.

What I don't know is the correct way to refresh that token when it expires. Sending a new OAuth card to the user is not user-friendly. I'm sure there is a better way to do it. How ?

Thanks

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
751 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,707 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,885 questions
{count} votes