validate method
설정 검증
iOS 플랫폼에서는 iosClientId가 필수입니다.
targetPlatform을 지정하면 해당 플랫폼 기준으로 검증합니다.
Implementation
List<KAuthError> validate({TargetPlatform? targetPlatform}) {
final errors = <KAuthError>[];
// iOS 플랫폼 체크
final isIOS = targetPlatform == TargetPlatform.iOS ||
targetPlatform == TargetPlatform.macOS;
if (isIOS && (iosClientId == null || iosClientId!.isEmpty)) {
errors.add(KAuthError.fromCode(
ErrorCodes.googleMissingIosClientId,
details: {'provider': 'google'},
));
}
return errors;
}