whoami: Returns your current authentication credentials.

Description Usage Arguments Value Author(s)

View source: R/authentication.R

Description

If you need to authenticate yourself, you can do this with the authenticate() function. am_i_brandseye() is a useful method for determining if you're a staff member or not. The raise_error method makes whoami() an easy way to determine if the user is authenticated, and to raise an error if not.

Usage

1
whoami(raise_error = FALSE)

Arguments

raise_error

If this is set to TRUE, the function will raise an error instead of returning NULL if you are not authenticated.

Value

Returns NULL if you are not logged in, otherwise returns your current authentication credentials.

Author(s)

Constance Neeser


brandseye/brandseyer2 documentation built on Sept. 5, 2021, 2:15 p.m.