aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.43k stars 2.13k forks source link

Update use case 4 in amazon-cognito-identity-js to use AWS SDK for JavaScript (v3) #13241

Open trivikr opened 6 months ago

trivikr commented 6 months ago

Is this related to a new or existing framework?

No response

Is this related to a new or existing API?

No response

Is this related to another service?

Cognito

Describe the feature you'd like to request

The use case 4 on README shows an example using AWS SDK for JavaScript (v2)

Use case 4. Authenticating a user and establishing a user session with the Amazon Cognito Identity service.

import * as AWS from 'aws-sdk/global';

https://www.npmjs.com/package/amazon-cognito-identity-js/v/6.3.12

The AWS SDK for JavaScript (v2) will enter maintenance mode on September 8, 2024 and reach end-of-support on September 8, 2025.

Describe the solution you'd like

Replace the use case with equivalent code in AWS SDK for JavaScript (v3)

Describe alternatives you've considered

Continue using AWS SDK for JavaScript (v2) even if it's unsupported.

Additional context

No response

Is this something that you'd be interested in working on?

cwomack commented 6 months ago

Hello, @trivikr 👋. Thanks for opening this issue and pointing this out. Looks like we need to update our code example to use the new version.