polymerfire icon indicating copy to clipboard operation
polymerfire copied to clipboard

reauthenticate user

Open sowsan opened this issue 8 years ago • 1 comments

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

sowsan avatar Mar 10 '17 22:03 sowsan

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

khammami avatar Mar 29 '17 08:03 khammami