Skip to content

Refresh Tokens

Charles Wright requested to merge cvwright/24-refresh-tokens-v2 into main

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 handle HTTP 401 Unauthorized errors by automatically refreshing if possible, then re-trying the original API call with our new access token

Closes #24 (closed).

Merge request reports

Loading