标签: ios swift firebase firebase-authentication
我正在尝试更新用户的电子邮件。 Google Firebase的文档说我需要获取凭据,当我尝试var credential: FIRAuthCredential并在封闭user?.reauthenticateWithCredential(credential)中使用它时,错误说Variable 'credential' used before being initialized我需要对此进行初始化,我该怎么办?这个?我是否必须弹出操作表再次询问用户密码? 谢谢你的帮助。
var credential: FIRAuthCredential
user?.reauthenticateWithCredential(credential)
Variable 'credential' used before being initialized