Determines whether or not the provided credentials belong to NocoDB's super admin user.
Usage
is_super_admin(
origin = pal::pkg_config_val("origin"),
email = pal::pkg_config_val("email"),
password = pal::pkg_config_val("password"),
api_token = NULL
)
Arguments
- origin
character(1)
NocoDB server origin.character(1)
E-mail address of the NocoDB user to authenticate with.- password
character(1)
Password of the NocoDB user to authenticate with.- api_token
character(1)
NocoDB API token. Takes precedence overemail
andpassword
if provided.
Details
The user is determined based on api_token
or email
and password
(the former takes precedence).
See also
Other functions to manage NocoDB authentication:
api_tokens()
,
assert_super_admin()
,
create_api_token()
,
delete_api_token()
,
is_signed_in()
,
refresh_sign_in()
,
req_auth()
,
sign_in()
,
sign_out()
,
sign_up_user()
Other user:
assert_super_admin()
,
is_signed_in()
,
refresh_sign_in()
,
sign_in()
,
sign_out()