I am trying to integrate to an AEMP provider (John Deere), that uses OAuth2.0 for auth.
When I configure my channel, I can get the Oauth authentication working OK, and I get access to the resources, but I have not been able to find a way to implement the token refresh needed to keep it working longer. The access token provided by john deere expires after 12hs, so it would be very inconvenient to have to manually refresh it and reconfigure it in flespi to keep everything going.
Is there any way to use AEMP + OAuth2.0 that takes care of the whole OAuth flow, including refreshing the tokens?
Thanks!!
Pepe