Godot Firebase 密码恢复帮助

问题描述

所以我在线观看了几个教程,并进行了登录注册,但是没有人提供“发送密码恢复”教程,我确实找到了有关它的 firebase 文档:

https://firebase.google.com/docs/reference/rest/auth#section-send-password-reset-email

但是,当我尝试使用 HTTP 请求并运行它时...它给了我错误消息“无法连接”...不确定在哪里可以找到更多详细信息,但这就是我所得到的...这是我的代码如下:


const _RECOVER_URL := "https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=" + API_KEY

func recover(email:String,http: HTTPRequest) -> void:
var body := {
"email": email
}
http.request(_RECOVER_URL,[],false,HTTPClient.METHOD_POST,to_json(body))
var result := yield(http,"request_completed") as Array
if result[1] == 200:
current_token = _get_token_id_from_results(result)

func _on_RecoverBtn_pressed():
if EmailAddress.text.empty():
notification.text = "Please Enter Email Address"
return
Firebase.recover(EmailAddress.text,http)


解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)