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

160
Views
¿Cómo usar firebase v9 signInWithCredential correctamente con OAuthProvider?

Estoy tratando de implementar el inicio de sesión de Apple con la función signInWithCredential modular v9 de firebase.

He estado siguiendo la documentación tanto en Firebase como en Apple, pero sigo recibiendo el siguiente error cuando intento ejecutar signInWithCredential:

[TypeError: undefined no es un objeto (evaluando 'credential._getIdTokenResponse')]

Puedo hacer que aparezca el inicio de sesión de Apple y usar un biométrico para autenticar. Esto me da un token de identidad que he verificado en jwt.io. Es solo en signInWithCredentials donde arroja un error.

¿Alguien puede ver lo que estoy haciendo mal?

 const appleCredential = await AppleAuthentication.signInAsync({ requestedScopes: [ AppleAuthentication.AppleAuthenticationScope.FULL_NAME, AppleAuthentication.AppleAuthenticationScope.EMAIL ], state: csrf, nonce: hashedNonce }); const { identityToken, authorizationCode } = appleCredential; if (identityToken) { const authCredential = new OAuthProvider( "apple.com" ).credential({ idToken: identityToken, accessToken: authorizationCode, rawNonce: nonce // nonce value from above }); signInWithCredential(authCredential) .then((credential) => { console.log(credential?.providerId) }).catch(e => { console.log("error in apple auth: ", e) }) }
about 4 years ago · Juan Pablo Isaza
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!