Skip to content

Commit f420390

Browse files
committed
chore: code cleanup
1 parent f1f2ef4 commit f420390

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

googleapis_auth/lib/src/auth_client_signing_extension.dart

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ import 'utils.dart';
2020
/// 3. **Other auth clients** (ADC on GCE/Cloud Run): Uses IAM signBlob with
2121
/// the default service account from metadata server
2222
///
23-
/// This is the Dart equivalent of `GoogleAuth.sign()` from the Node.js
24-
/// google-auth-library.
25-
///
2623
/// Example usage:
2724
/// ```dart
2825
/// // Works with service account credentials
@@ -93,14 +90,6 @@ extension AuthClientSigningExtension on AuthClient {
9390
final universeDomain =
9491
serviceAccountCreds?.universeDomain ?? defaultUniverseDomain;
9592
endpoint ??= 'https://iamcredentials.$universeDomain';
96-
return _signViaIAM(data, endpoint);
97-
}
98-
99-
/// Signs data using the IAM Credentials API.
100-
///
101-
/// Returns the signature as a String (base64-encoded).
102-
Future<String> _signViaIAM(List<int> data, String endpoint) async {
103-
final signer = IAMSigner(this as http.Client, endpoint: endpoint);
104-
return signer.sign(data);
93+
return IAMSigner(this, endpoint: endpoint).sign(data);
10594
}
10695
}

0 commit comments

Comments
 (0)