question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Account recovery contact verification is broken on aws-amplify-react since 4.1.20

See original GitHub issue

Describe the bug Account recovery contact verification is broken on aws-amplify-react since 4.1.20.

To Reproduce Steps to reproduce the behavior:

  1. Install aws-amplify-react@4.1.20 or aws-amplify-react@4.1.21
  2. Have a component wrapped in withAuthenticator
  3. Login with a freshly created account, and you’ll be thrown right into your app component instead of the “Account recovery requires verified contact information” form

Expected behavior After logging in, it is expected to be presented with the form “Account recovery requires verified contact information”, that look something like this: Screenshot 2020-08-04 at 01 14 10

What is Configured?

import Amplify from '@aws-amplify/core'

Amplify.configure({
 region: process.env.AWS_REGION,
 userPoolId: process.env.AWS_USER_POOL_ID,
 userPoolWebClientId: process.env.AWS_USERPOOL_WEBCLIENT_ID
})

Environment
  System:
    OS: macOS 10.15.6
    CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
    Memory: 217.07 MB / 16.00 GB
    Shell: 3.1.2 - /usr/local/bin/fish
  Binaries:
    Node: 12.16.3 - /var/folders/5s/1t5kw3r54ps7k4mc4t630myc0000gn/T/fnm-shell-8519761/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /var/folders/5s/1t5kw3r54ps7k4mc4t630myc0000gn/T/fnm-shell-8519761/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Brave Browser: 84.1.11.104
    Chrome: 84.0.4147.105
    Chrome Canary: 86.0.4220.0
    Firefox: 78.0.2
    Safari: 14.0
  npmPackages:
    @mdx-js/loader: ^1.6.16 => 1.6.16 
    @next/bundle-analyzer: ^9.5.1 => 9.5.1 
    @next/mdx: ^9.5.1 => 9.5.1 
    @openapitools/openapi-generator-cli: ^1.0.15-4.3.1 => 1.0.15-4.3.1 
    @sentry/browser: ^5.20.1 => 5.20.1 
    @stripe/react-stripe-js: ^1.1.2 => 1.1.2 
    @stripe/stripe-js: ^1.8.0 => 1.8.0 
    @types/js-cookie: ^2.2.4 => 2.2.4 
    @types/lodash.throttle: ^4.1.6 => 4.1.6 
    @types/mdx-js__react: ^1.5.1 => 1.5.1 
    @types/node: ^12.12.11 => 12.12.11 
    @types/styled-components: ^4.4.0 => 4.4.0 
    @types/styled-system: ^5.1.4 => 5.1.4 
    @types/uuid: ^7.0.2 => 7.0.2 
    @typescript-eslint/eslint-plugin: ^2.21.0 => 2.21.0 
    @typescript-eslint/parser: ^2.21.0 => 2.21.0 
    @zeit/next-css: 1.0.1 => 1.0.1 
    antd: 3.25.2 => 3.25.2 
    aws-amplify: ^3.0.22 => 3.0.22 
    aws-amplify-react: 4.1.20 => 4.1.20 
    axios: ^0.19.2 => 0.19.2 
    babel-plugin-styled-components: ^1.10.6 => 1.10.6 
    currency-symbol-map: ^4.0.4 => 4.0.4 
    date-fns: ^2.9.0 => 2.9.0 
    dotenv: ^8.2.0 => 8.2.0 
    easy-peasy: ^3.3.1 => 3.3.1 
    eslint: ^6.7.0 => 6.7.0 
    eslint-config-standard: ^14.1.0 => 14.1.0 
    eslint-config-standard-jsx: ^8.1.0 => 8.1.0 
    eslint-plugin-import: ^2.18.2 => 2.18.2 
    eslint-plugin-node: ^10.0.0 => 10.0.0 
    eslint-plugin-promise: ^4.2.1 => 4.2.1 
    eslint-plugin-react: ^7.16.0 => 7.16.0 
    eslint-plugin-standard: ^4.0.1 => 4.0.1 
    husky: ^3.1.0 => 3.1.0 
    js-cookie: ^2.2.1 => 2.2.1 
    jwt-js-decode: ^1.4.1 => 1.4.1 
    lint-staged: ^9.5.0 => 9.5.0 
    local-storage: ^2.0.0 => 2.0.0 
    lodash.throttle: ^4.1.1 => 4.1.1 
    next: ^9.5.1 => 9.5.1 
    next-compose-plugins: 2.2.0 => 2.2.0 
    next-cookies: ^2.0.3 => 2.0.3 
    next-env: ^1.1.1 => 1.1.1 
    react: ^16.13.1 => 16.13.1 
    react-dom: ^16.13.1 => 16.13.1 
    react-query: ^2.5.10 => 2.5.10 
    snazzy: ^8.0.0 => 8.0.0 
    standardx: ^5.0.0 => 5.0.0 
    styled-components: ^4.4.1 => 4.4.1 
    styled-system: ^5.1.2 => 5.1.2 
    typescript: ^3.8.2 => 3.8.2 
    uuid: ^7.0.2 => 7.0.2 
  npmGlobalPackages:
    npm: 6.14.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
jordanranzcommented, Aug 5, 2020

Got it, I found the root cause. I’ll submit a PR shortly

2reactions
0xtfcommented, Aug 5, 2020

Hi @jordanranz. Working with @mfferreira on this.

4.1.19 was the last version that this functionality was working properly. Since then we’ve tried 4.1.20 and 4.1.21 and both of them have the same issue.

Thank you for looking into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up an account recovery contact - Apple Support
An account recovery contact is someone who can verify your identity and help you regain access to your account and all of your...
Read more >
Recover an account protected by 2-Step Verification
A newly-created user can't sign in to their account to set up 2-Step verification. Prepare for account recovery. Administrators should have a spare...
Read more >
How to Set a Recovery Contact for Your Apple ID Account
1. Open the Settings app on your iOS device and tap your Apple ID banner at the top of the main menu. 2....
Read more >
How To Fix Google Couldn't Verify That This Account Belongs ...
Couldn't sign you in. Thanks for confirming that you can access the contact email address you provided. Unfortunately Google couldn't verify ...
Read more >
Back up and recover account credentials in the Authenticator ...
After you finish your recovery, you might notice that your personal Microsoft account verification codes in the Authenticator app are different between your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found