Bolt's access_token expires after a while making some of the API calls we send to Bolt unable to process. With this PR we introduce a service that will refresh the access_token after expiry and rework the code to call said service instead of using session[:bolt_access_token].
The logic looks good to me. But I have bring it to draft because we have to update the omniauth-bolt gem, otherwise, we cannot update the reference to that gem
Bolt's access_token expires after a while making some of the API calls we send to Bolt unable to process. With this PR we introduce a service that will refresh the access_token after expiry and rework the code to call said service instead of using
session[:bolt_access_token]
.Fixes https://github.com/nebulab/solidus_bolt/issues/101 Requires https://github.com/nebulab/omniauth-bolt/pull/2