Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
¿Hay alguna manera de excluir displayName en GoogleSignIn?

No quiero recuperar el nombre de usuario ni la foto de perfil que el usuario tiene en su cuenta de Google.

 export async function signUpGoogle() { try { const result = await Google.logInAsync({ androidClientId: GOOGLE_ANDROID_CLIENT_ID, iosClientId: GOOGLE_IOS_CLIENT_ID, scopes: ["email"], }); //console.log(result); if (result.type === "success") { const credential = GoogleAuthProvider.credential(result.idToken); signInWithCredential(auth, credential).catch((error) => { console.log(error); }); } else { console.log("cancelled"); } } catch (e) { return { error: true }; }}

El código que uso para GoogleSignIn está arriba.

versiones:

 "expo": "~44.0.0", "expo-google-app-auth": "~8.3.0", "firebase": "^9.1.3", "@react-native-firebase/auth": "^12.9.3",
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

esto debería ayudar

 const { user } = await auth.signInWithCredential(credential); const user = { photoURL: user.photoURL, displayName: user.displayName ?? 'User', uid: user.uid, email: user.email, };
about 4 years ago · Juan Pablo Isaza Report

0

Cuando inicia sesión con Google, el resultado que obtiene contiene toda esa información, el UID, el nombre para mostrar, la URL de la imagen de perfil. No hay forma de excluir esos campos. Si no quieres usarlos, simplemente ignóralos.

Sin embargo, si no desea obtener los detalles del usuario, debe considerar implementar la autenticación anónima de Firebase . De esta forma, solo tendrás un UID, que solo se puede usar para diferenciar usuarios. Eso es todo.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!