polymerfire
polymerfire copied to clipboard
reauthenticate user
Hello -
I couldnt find a method implementation of reauthenticate the user as firebase web library provides, Can someone confirm is there a workaround for it in firebase-auth element ?
https://firebase.google.com/docs/auth/web/manage-users#re-authenticate_a_user
Regards, Sowmyan
var user = firebase.app('app_name').auth().currentUser;
var credential; //from the last successful auth.
user.reauthenticate(credential).then(function() {
// User re-authenticated.
}, function(error) {
// An error happened.
});
app_name you gave to firebase-app/firebase-auth