validate method
void
validate()
Validates the configuration.
Throws LinkFortyException if validation fails.
Implementation
void validate() {
// Validate HTTPS (except localhost)
if (baseURL.scheme != 'https' && !_isLocalhost) {
throw LinkFortyException.invalidConfiguration(
'Base URL must use HTTPS (HTTP only allowed for localhost)',
);
}
// Validate attribution window (1 hour to 90 days)
if (attributionWindowHours < 1 || attributionWindowHours > 2160) {
throw LinkFortyException.invalidConfiguration(
'Attribution window must be between 1 and 2160 hours',
);
}
}