新文档中的(不清楚的)示例在此处:
var user = firebase.auth().currentUser;
var credential;
// Prompt the user to re-provide their sign-in credentials
user.reauthenticateWithCredential(credential).then(function() {
我应该如何创建这个credential
对象?
我尝试过:
reauthenticateWithCredential(email, password)
(就像登录方法一样)reauthenticateWithCredential({ email, password })
(文档中仅提到了一个参数)
但都不行 :(
PS:我不算在新文档中搜索相关信息浪费的时间... 我非常想念精彩的firebase.com文档,但希望为firebase.storage切换到v3或更高版本...