Skip to contents

Asserts that the provided credentials belong to NocoDB's super admin user.

Usage

assert_super_admin(
  hostname = pal::pkg_config_val("hostname"),
  email = pal::pkg_config_val("email"),
  password = pal::pkg_config_val("password"),
  api_token = NULL
)

Arguments

hostname

NocoDB server hostname. A character scalar.

email

E-mail address of the NocoDB user to authenticate with.

password

Password of the NocoDB user to authenticate with.

api_token

NocoDB API token. Takes precedence over email and password if provided.

Value

TRUE, invisibly.

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(), create_api_token(), delete_api_token(), is_signed_in(), is_super_admin(), refresh_sign_in(), req_auth(), sign_in(), sign_out(), sign_up_user()

Other user: is_signed_in(), is_super_admin(), refresh_sign_in(), sign_in(), sign_out()