I am using n8n and need to automate the refresh of AWS Cognito OAuth tokens. Currently, I have to manually refresh the token every day, but I want to set up an automated process that ensures the token updates without any manual intervention.
I attempted to automate the refresh process by making a workflow in n8n to make a request to the AWS Cognito token endpoint. I expected the access token to refresh automatically and update within the workflow, eliminating the need for manual intervention.
However, the workflow does not seem to refresh the token as expected, and I still need to manually trigger it to get a new access token. I'm looking for a way to ensure the refresh happens without requiring manual execution.