Given a password-authenticated GoFigr client, this helper either accepts an existing API key entered by the user or creates a new API key via the API. The newly created key is associated with the authenticated user.
login_with_api_key(gf, max_attempts)A character string containing a valid API key, either supplied by the user or newly created.
Password-authenticated GoFigr client created by `gofigr_client()`.
Maximum number of attempts when validating a user- supplied API key.