solidusio / solidus_bolt

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

Expire user session when access token expires #112

Open Naokimi opened 2 years ago

Naokimi commented 2 years ago

In a previous commit we setup to have the AddAddressesToBolt be called asynchronously via a Job. However, when the first access_token expires then new one doesn't have write access anymore so the Job fails. To solve this we are adding a check for the expiration time and signing out the user, to force them to get a fresh token with write access.

To improve the UX, we are moving this step to before delivery (to avoid signing out a user right at the end of the checkout flow).

Requires https://github.com/nebulab/omniauth-bolt/pull/5

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions.