pub fn write_credentials(
user_id: &str,
device_id: &str,
token: &str,
relay_url: &str,
hostname: &str,
) -> Result<(), CredentialError>Expand description
write_credentials stores token in config.json (0600). Bumps credential_version and persists via save_config.