2

I started using Firebase authentication SDK for Web recently for managing user accounts on a ReactJS webapp.

For changing email address and password, Firebase requires a recent login. Given the name, it seems to make sense to use the reauthenticateWithCredential function. However, how is it different from simply using signInWithEmailAndPassword again?

Would love to see an example when and how this is used.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
CSquare
  • 624
  • 6
  • 16
  • For an example, see: https://stackoverflow.com/questions/37811684/how-to-create-credential-object-needed-by-firebase-web-user-reauthenticatewith – Frank van Puffelen Feb 18 '21 at 15:58
  • Thanks, it -is- an useful example of how to use reauthenticateWithCredential (which is poorly documented). It just doesn't say why one would use this instead of the regular signInWith... method. – CSquare Feb 18 '21 at 16:17

0 Answers0