Skip to contents

Requests a fresh NocoDB access token via the POST /api/v1/auth/token/refresh API endpoint. Requires a valid refresh token cached to disk by sign_in(cache_refresh_token = TRUE).

Usage

refresh_sign_in(
  hostname = pal::pkg_config_val("hostname"),
  email = pal::pkg_config_val("email", require = TRUE)
)

Arguments

hostname

NocoDB server hostname. A character scalar.

email

E-mail address of the NocoDB user whose access token is to be refreshed. A character scalar.

Value

The freshly generated access token as a character scalar, invisibly.

Details

Besides generating a fresh access token, also a new refresh token is cached to disk.

See also