Issue with FederatedSignIn using Google: Error Description - "attributes required phone_number"

0

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,

1 Answer
0

Anyone with a solution for this?

Arian
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions