Azure Logic apps Office 365 connection - how to refresh token when lifetime validation failed?
In VS Code, I'm developing a logic app workflow to send an email. Leveraging Office 365 connector, I created a connection by signing in my work account. I was able to test it and emails were sent. After a couple of days, I got below error:
"Error from token exchange: Bad Key authorization token. Token must be a valid JWT signed with HS256\r\nFailed to validate token: IDX10223: Lifetime validation failed. The token is expired."
Here's what I'm done so far to refresh token:
- From VS Code, I opened designer, and navigated to existing step "Send an email (V2)" to create new connection but left panel just displayed infinite loop.
- From VS Code, I created a new workflow and added a new action step: "Send an email (V2)". Left panel displayed window to Create new connection. I entered the required fields: connection name and authentication type. On click of Sign in button. error displayed "Failed to create connection: Unknown error". I was able to created connection before but now it is raising error. What could be the problem?
Can you suggest a way to refresh the token or help me fix the connection problem?
VS Code 1.93.1
Azure Logic (Standard)
Azure Functions Core Tools
Core Tools Version: 4.0.5907
Function Runtime Version: 4.834.3.22875