sq_auth_check: Check that an Authorized Square Session Exists

Description Usage Arguments Value Note

View source: R/auth.R

Description

Before the user makes any calls requiring an authorized session, check if an OAuth token or session is not already available, call sq_auth to by default initiate the OAuth 2.0 workflow that will load a token from cache or launch browser flow. Return the bare token. Use sq_access_token() to reveal the actual access token, suitable for use with curl.

Usage

1
sq_auth_check(verbose = FALSE)

Arguments

verbose

logical; do you want informative messages?

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.


StevenMMortimer/squareupr documentation built on July 12, 2019, 1:45 a.m.