Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Sep 20, 2023
1 parent e3399bb commit 3de7c25
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ class WithSigV4 extends HttpRequestInterceptor {
@override
Future<AWSBaseHttpRequest> intercept(AWSBaseHttpRequest request) async {
// Do not attempt to sign requests where auth is optional.
if (isOptional) return request;

//
// This is only set in Cognito and SSO services where the trait indicates
// that signing is strictly unnecessary and that signing the request does
// not impact the behavior of the APIs. if (isOptional) return request;
final signer = AWSSigV4Signer(
credentialsProvider: credentialsProvider,
algorithm: algorithm,
Expand Down

0 comments on commit 3de7c25

Please sign in to comment.