How to call refresh token with omniauth-infusionsoft in Ruby?


I am now able to retrieve the access token from Infusionsoft API using OAuth 2.0 with the omniauth-infusionsoft gem. However, I am now stuck on handle the refresh token since there isn’t much example available on the web. Can someone provide some hints or advice on how this can be done in ruby?

This vid I have covers the topics in PHP but the concepts are still the same and I go over managing refresh cycles for the tokens.