Exchange the authorization code from the OAuth redirect for an expiring
token pair.
code query parameter from the redirect
Get a new token pair using a refresh token. The refresh token is single
use: store the returned refreshToken, the old one stops working.
OAuth client for the app-credential endpoints: exchanging an authorization code and refreshing an expiring token pair (Clover v2 OAuth, high-trust code flow).
These endpoints authenticate with the app's
clientId/clientSecret, not a merchant token, which is why this is separate from CloverClient.Example