Skip to content

Commit 96c7759

Browse files
committed
refactor: rename profile field to match expected
1 parent 548fb51 commit 96c7759

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/auth/providers/sharedCredentialsProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,12 @@ export class SharedCredentialsProvider implements CredentialsProvider {
403403
}
404404

405405
const stsClient = new DefaultStsClient(this.getDefaultRegion() ?? 'us-east-1')
406-
const assumeRoleReq: STS.AssumeRoleRequest = profile.aws_mfa_serial
406+
const assumeRoleReq: STS.AssumeRoleRequest = profile.mfa_serial
407407
? {
408408
RoleArn: profile.role_arn,
409409
RoleSessionName: 'AssumeRoleSession',
410-
SerialNumber: profile.aws_mfa_serial,
411-
TokenCode: await getMfaTokenFromUser(profile.aws_mfa_serial, this.profileName),
410+
SerialNumber: profile.mfa_serial,
411+
TokenCode: await getMfaTokenFromUser(profile.mfa_serial, this.profileName),
412412
}
413413
: {
414414
RoleArn: profile.role_arn,

0 commit comments

Comments
 (0)