We're using a Power Automate flow with the Office 365 Groups connector and a service account whose password doesn’t expire. The flow runs several times a week and was working fine until we recently encountered this error:
Action 'List_group_members_-_Intranet_Team' failed: Error from token exchange: Bad Key authorization token. Token must be a valid JWT signed with HS256. Failed to validate token: IDX10249: X509SecurityKey validation failed. The associated certificate has expired. ValidTo (UTC): '5/6/2025 11:59:59 PM', Current time (UTC): '5/7/2025 1:26:43 AM'.
Why is the token or certificate expiring even though we're using a non-expiring service account? Is there a way to prevent this, or a recommended approach to rotate or refresh certificates for connectors like this?