Hello,

so I watched a couple tutorials online, and have the login, and register, however no one ever puts up "send password recovery" tutorial, which I did find the firebase documentation for it:

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

HOWEVER when i try and use the HTTP request, and run it... it gives me error message "Failed to Connect"... not sure where else to look for more detail, but thats all i get... here is my code below:

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)

sorry not sure if there is a code tag etc.

cool thank you :) hope someone can answer my question :(

2 years later