We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b00e14 commit 9e98833Copy full SHA for 9e98833
packages/middleware-user-agent/src/check-features.ts
@@ -76,7 +76,9 @@ export async function checkFeatures(
76
}
77
78
79
- const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
+ // TODO: later version of @smithy/types has explicit typing for this.
80
+ const identity = (context.__smithy_context?.selectedHttpAuthScheme as any)?.identity;
81
+
82
if ((identity as AttributedAwsCredentialIdentity).$source) {
83
const credentials = identity as AttributedAwsCredentialIdentity;
84
if (credentials.accountId) {
0 commit comments