solidusio / solidus_bolt

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Refresh access_token Service #102

Closed Naokimi closed 2 years ago

Naokimi commented 2 years ago

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

DanielePalombo commented 2 years ago

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