'Firebase 'requires-recent-login'
I would like to know about firebase requires-recent-login
.
If I reauthenticate user like this
firebase.auth().currentUser.reauthenticateAndRetrieveDataWithCredential(
firebase.auth.EmailAuthProvider.credential(firebase.auth().currentUser.email,
typedpassword))
to let user change password or email, is there any possibility that requires-recent-login
error comes out?
Solution 1:[1]
Some actions require recent authentication and it fails with a auth/requires-recent-login
error code.
One action that requires recent authentication is the updating of email.
The solution is to reauthenticate the user, before retrying the action.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |