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.
whoami(raise_error = FALSE)
raise_error | If this is set to |
---|
Returns NULL
if you are not logged in,
otherwise returns your current authentication credentials.
Constance Neeser