has_auth_code: has_auth_code

Description Usage Arguments Details Value Examples

View source: R/has_auth_code.R

Description

checks for authorization code in url

Usage

1
has_auth_code(params)

Arguments

params

session URL

Details

params is a list object containing the parsed URL parameters. Return TRUE if based on these parameters, it looks like auth codes are present that we can use to get an access token. If not, it means we need to go through the OAuth flow.

Value

Tru eor False

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 has_auth_code(parseQueryString(req$QUERY_STRING))
 }

## End(Not run)

ceparman/ShinyPlatform documentation built on Dec. 30, 2020, 9:47 p.m.