Comments (2)
Hi @gemmerton ,
If you didn't know, all of the AWS SDKs are code generated from the API models of the various AWS services. The types the SDK generates are matching whatever the AWS service specifies in their API model (PascalCase AccessKeyId). The service team cannot change the casing of the response they return since it would be considered a breaking change.
The solution here is to reconstruct the credential object yourself. something like this:
const credentials = {
accessKeyId: cognitoResponse.Credentials.AccessKeyId,
secretAccessKey: cognitoResponse.Credentials.SecretAccessKey,
sessionToken: cognitoResponse.Credentials.SessionToken
}
Thanks,
Ran~
from aws-sdk-js-v3.
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.
from aws-sdk-js-v3.
Related Issues (20)
- credentials property of SSM constructor is not documented HOT 2
- @aws-sdk/lib-storage doesn't upload and freezes program HOT 1
- at de_ParameterNotFoundRes (/var/runtime/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7776:21) HOT 3
- SignatureDoesNotMatch Error in S3 PUT Object in React Native HOT 1
- (short issue description) HOT 1
- MetadataService ignoring timeout config HOT 3
- ScanCommand with no Limit set only ever reads one page of data HOT 2
- S3 v3.540.0 - v3.565.0 breaks when used with [email protected] HOT 1
- Volumes of FSx for NetApp ONTAP missing AdministrativeActions prop HOT 2
- @aws-sdk/credential-provider-node doesn't provide @aws-sdk/client-sts HOT 11
- dependency failures using punycode, getRandomBase64, and smithy in react-native
- Cannot find package '@aws-sdk/client-s3' in Lambda function with a Layer HOT 2
- Install size of node_modules increased in v3.565.0 HOT 2
- getSignedUrl Doesn't work with ContentDisposition or ServerSideEncryption param of PutObjectCommand HOT 6
- `DescribeSnapshotsCommand` mishandles empty array of filters HOT 2
- Version v3.569 results in TS2307: Cannot find module for @aws-sdk/lib-dynamodb HOT 1
- `@smithy/types` clients mistype `CloudFormation.describeStacks` HOT 2
- docs: use `pnpm add <pkg>` instead of `pnpm install <pkg>` HOT 5
- DynamoDB Client UpdateItemCommand -- Inaccurate Error Message HOT 2
- (short issue description) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-js-v3.