Just in case anyone else encounters this problem, I found this to be the solution (taken from here https://medium.com/clover-platform-blog/expiring-oauth-tokens-securing-clover-merchant-data-16243b9c00cc):