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.42k stars 2.12k forks source link

LimitExceededException when implementing resetPassowrd #13023

Closed ayobamiseun closed 7 months ago

ayobamiseun commented 8 months ago

Before opening, please confirm:

JavaScript Framework

React

Amplify APIs

Authentication

Amplify Version

v6

Amplify Categories

auth

Backend

Amplify CLI

Environment information

``` # Put output below this line System: OS: macOS 13.6.4 CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz Memory: 218.98 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.17.1 - /usr/local/bin/node npm: 9.6.7 - /usr/local/bin/npm Browsers: Chrome: 121.0.6167.184 Safari: 17.3.1 npmPackages: @aws-amplify/ui-react: ^6.1.2 => 6.1.2 @aws-amplify/ui-react-internal: undefined () @types/node: ^20.10.7 => 20.11.6 @types/react: ^18.2.43 => 18.2.48 @types/react-dom: ^18.2.17 => 18.2.18 @types/react-router-dom: ^5.3.3 => 5.3.3 @typescript-eslint/eslint-plugin: ^6.18.0 => 6.19.1 @typescript-eslint/parser: ^6.18.0 => 6.19.1 @vitejs/plugin-react: ^4.2.1 => 4.2.1 @vue/compiler-sfc: ^3.4.5 => 3.4.15 amazon-cognito-identity-js: ^5.2.14 => 5.2.14 amazon-quicksight-embedding-sdk: ^2.6.0 => 2.6.0 autoprefixer: ^10.4.16 => 10.4.17 aws-amplify: ^6.0.11 => 6.0.13 aws-amplify/adapter-core: undefined () aws-amplify/analytics: undefined () aws-amplify/analytics/kinesis: undefined () aws-amplify/analytics/kinesis-firehose: undefined () aws-amplify/analytics/personalize: undefined () aws-amplify/analytics/pinpoint: undefined () aws-amplify/api: undefined () aws-amplify/api/server: undefined () aws-amplify/auth: undefined () aws-amplify/auth/cognito: undefined () aws-amplify/auth/cognito/server: undefined () aws-amplify/auth/enable-oauth-listener: undefined () aws-amplify/auth/server: undefined () aws-amplify/datastore: undefined () aws-amplify/in-app-messaging: undefined () aws-amplify/in-app-messaging/pinpoint: undefined () aws-amplify/push-notifications: undefined () aws-amplify/push-notifications/pinpoint: undefined () aws-amplify/storage: undefined () aws-amplify/storage/s3: undefined () aws-amplify/storage/s3/server: undefined () aws-amplify/storage/server: undefined () aws-amplify/utils: undefined () chart.js: ^4.4.1 => 4.4.1 chart.js-auto: undefined () chart.js-helpers: undefined () chartjs-plugin-datalabels: ^2.2.0 => 2.2.0 eslint: ^8.56.0 => 8.56.0 eslint-config-prettier: ^9.1.0 => 9.1.0 eslint-plugin-import: ^2.29.1 => 2.29.1 eslint-plugin-jsx-a11y: ^6.8.0 => 6.8.0 eslint-plugin-react: ^7.33.2 => 7.33.2 eslint-plugin-react-hooks: ^4.6.0 => 4.6.0 eslint-plugin-react-refresh: ^0.4.5 => 0.4.5 lucide-react: ^0.307.0 => 0.307.0 postcss: ^8.4.33 => 8.4.33 prettier: ^3.1.1 => 3.2.4 react: ^18.2.0 => 18.2.0 react-chartjs-2: ^5.2.0 => 5.2.0 react-dom: ^18.2.0 => 18.2.0 react-icons: ^4.12.0 => 4.12.0 react-router-dom: ^6.21.1 => 6.21.3 react-top-loading-bar: ^2.3.1 => 2.3.1 tailwindcss: ^3.4.1 => 3.4.1 typescript: ^5.2.2 => 5.3.3 vite: ^5.0.8 => 5.0.12 vite-plugin-svg: ^0.7.0 => 0.7.0 npmGlobalPackages: corepack: 0.18.0 npm: 9.6.7 ```

Describe the bug

I get LimitExceededException: Attempt limit exceeded, please try after some time.

Expected behavior

I expect it to be lifted after 15mins but still not able to test my resetPassword implementation

Reproduction steps

n/a

Code Snippet

// Put your code below this line.

Log output

``` // Put your logs below this line ```

aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

cwomack commented 7 months ago

Hello, @ayobamiseun and sorry to hear that you're experiencing this. What you're describing looks to be the expected Amazon Cognito lockout behavior for failed sign-in attempts if there's been 5 or more failed attempts. Can you take a look at that documentation link and let me know if it looks to be what you're experiencing?

nadetastic commented 7 months ago

Hi 👋 Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.

Thank you!