Securely prompts for and stores the Synthesize Bio API token in the environment. This function uses getPass to securely handle the token input without displaying it in the console. The token is stored in the SYNTHESIZE_API_KEY environment variable for the current R session.
set_synthesize_token(use_keyring = FALSE, token = NULL)
Invisibly returns TRUE if successful.
# Interactive prompt for token
if (FALSE) { # \dontrun{
set_synthesize_token()
# Provide token directly (less secure, not recommended for interactive use)
set_synthesize_token(token = "your-token-here")
# Store in system keyring for future sessions
set_synthesize_token(use_keyring = TRUE)
} # }