authenticateApple method
Authenticate Apple credentials on backend
Implementation
Future<CkAuthResult<TProfile>> authenticateApple(CkAppleAuthData data) async {
if (_config?.apple == null) {
return CkAuthResult<TProfile>.failure(
message: 'Apple auth is not configured',
);
}
final aConfig = _config!.apple!;
final body = aConfig.bodyBuilder(data);
final extractors =
aConfig.responseExtractors ?? _defaultExtractors;
return _executeSocialRequest(
url: aConfig.backendUrl,
method: aConfig.method,
body: body,
extractors: extractors,
);
}