I'm able to use token <- fitbitr::oauth_token() to generate the initial authentication and refresh tokens following browser authentication, however, once the authentication token expires, I can't seem to use the refresh token to generate a new authentication token.
Running token$token$refresh() gives me the following error:
Error in refresh_oauth2.0(self$endpoint, self$app, self$credentials, self$params$user_params, :
Unauthorized (HTTP 401).
Is this feature implemented already, or does the token refresh need to be managed directly by writing the httr code to handle the process? If it isn't, I would say this would be quite an essential update to this wonderful r package.
I'm able to use
token <- fitbitr::oauth_token()to generate the initial authentication and refresh tokens following browser authentication, however, once the authentication token expires, I can't seem to use the refresh token to generate a new authentication token.Running
token$token$refresh()gives me the following error:Is this feature implemented already, or does the token refresh need to be managed directly by writing the httr code to handle the process? If it isn't, I would say this would be quite an essential update to this wonderful r package.