0

Using SMS authentication, the userCredential information returned by Google is:

UserCredential(additionalUserInfo: AdditionalUserInfo(isNewUser: false, profile: null, providerId: phone, username: null), credential: null, user: User(displayName: null, email: null, emailVerified: false, isAnonymous: false, metadata: UserMetadata(creationTime: 2021-12-30 12:22:29.000, lastSignInTime: 2022-01-18 09:01:18.000), phoneNumber: , photoURL: null, providerData, [UserInfo(displayName: null, email: null, phoneNumber: , photoURL: null, providerId: phone, uid: )],

What will I need to do to get some userinfo from Google (assuming that user has a Google account with that phone number)?

1 Answer 1

0

When a user signs in to Firebase with the phone number provider, Firebase does not make any connection to any potential Google account with that same phone number.

If you need that information, consider signing in to Google itself with the phone number, and then using the resulting credentials from Google to sign into Firebase.

Sign up to request clarification or add additional context in comments.

1 Comment

Frank, thanks for those directions. Will you be able to help point me to some resources on getting started with that approach? Did you perhaps mean support.google.com/accounts/answer/7222352 ? The issue is that I want to use only SMS auth, as the user base I am targeting are more comfortable with SMS auth, and might not even be using email (which is actually becoming increasingly common in India).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.