sf_auth_refresh: Refresh an existing Authorized Salesforce Token

View source: R/auth.R

sf_auth_refreshR Documentation

Refresh an existing Authorized Salesforce Token

Description

Force the current OAuth to refresh. This is only needed for times when you load the token from outside the current working directory, it is expired, and you're running in non-interactive mode.

Usage

sf_auth_refresh(verbose = FALSE)

Arguments

verbose

logical; an indicator of whether to print additional detail for each API call, which is useful for debugging. More specifically, when set to TRUE the URL, header, and body will be printed for each request, along with additional diagnostic information where available.

Value

a Token2.0 object (an S3 class provided by httr) or a a character string of the sessionId element of the current authorized API session

Note

This function is meant to be used internally. Only use when debugging.


salesforcer documentation built on March 18, 2022, 6:26 p.m.