qt_refresh_token: Refresh tokens

Description Usage Arguments Value

View source: R/auth.R

Description

Submits a refresh token to Questrade to exchange for an access token, which can be used for performing account operations. These tokens are stored securely in your platform's credential store. This will also update the account_set object with the api server.

Usage

1
2
3
4
5
qt_refresh_token(
  account_set = load_account_set(),
  refresh_token = NULL,
  update_saved_account_set = TRUE
)

Arguments

account_set

account_set object

refresh_token

the value of a refresh token. Leave NULL to get this from keyring.

update_saved_account_set

should the updated account set be updated? Almost always should be true.

Value

an updated account_set object


colin-fraser/questradeR documentation built on Dec. 31, 2020, 10:05 p.m.