refresh_token: Refresh Token

View source: R/refresh_token.R

refresh_tokenR Documentation

Refresh Token

Description

Refresh Oauth 2.0 Token

Usage

refresh_token(
  endpoint,
  app,
  credentials,
  user_params = NULL,
  use_basic_auth = FALSE
)

Arguments

endpoint

the endpoint to authenticae against

app

the app to autheticate

credentials

the credentials list from a token generated by get_token

user_params

user parameters to send with request

use_basic_auth

should basic authorization be used - don't know what this does

Details

This function is baseed upon httr:::refresh_oauth2.0 which doesn't parse the credentials into a list. An additional call to rjson::fromJSON has been added to parse the credentials correctly

Value

a list of refreshed credentials

Source

https://rdrr.io/cran/httr/src/R/oauth-refresh.R https://cran.r-project.org/package=httr


MatthewJWhittle/getarc documentation built on April 22, 2023, 12:16 p.m.