I build a chatbot using Power Virtual Agents (preview version).
I set up SSO with AzureAD and deploy the chatbot to Microsoft Teams.
It works for first 1-2 hours, but after that (maybe after the initial token is expired) I cannot access 'System.User.AccessToken' information and I get 'InfiniteLoopInBotContent' error. It seems the bot try to re-authenticate but it doesn't work.
And, 'System.User.AccessToken' is not in the variable list. (So, I open 'code editor' and type it manually).
Help.