Refresh Tokens
This MR adds support for refresh tokens
- On login, we now provide an extra parameter
refreshToken: Bool
for the caller to optionally request refreshable access tokens and refresh tokens - In the base
Client.call()
function, we now handleHTTP 401 Unauthorized
errors by automatically refreshing if possible, then re-trying the original API call with our new access token
Closes #24 (closed).