Hello AWS Community,
I hope this message finds you well. I'm currently facing an issue while implementing FederatedSignIn with Google in my React app. The specific error I'm encountering is:
error_description=attributes+required+phone_number
To provide some context, I've configured the required attributes in my user pool as follows:
Required attributes:
given_name
family_name
phone_number
Despite my efforts, I am struggling to resolve the issue related to the "phone_number" attribute. I've added the scope /auth/user.phonenumbers.read to the Google client, but I'm still unable to retrieve the phone_number.
Here's a snippet of my OAuth configuration:
oauth: {
domain: DOMAIN_URL,
scope: ["phone", "email", "profile", "openid"],
redirectSignIn: "http://localhost:3000/", // Add your actual redirect URL for development
redirectSignOut: "http://localhost:3000/", // Add your actual redirect URL for development
responseType: "code",
},
I'm reaching out to the community seeking assistance, and I'm open to suggestions on how to address this issue. Here are the solutions I'm considering:
Find a way to remove the "phone_number" attribute from the user pool.
Find a way to retrieve the phone number from Google sign-in.
Explore the option of creating a new user pool and moving all users to the new user pool.
If you have encountered a similar issue or have expertise in this area, I would greatly appreciate any insights or guidance you can provide to help me resolve this challenge.
Thank you in advance for your time and assistance!
Best regards,