Created
November 17, 2025 14:42
-
-
Save WolfgangSenff/362aa7f22de2b2bffd687058e78712e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var db_ref | |
| func _ready() -> void: | |
| Firebase.Auth.login_succeeded.connect(_on_FirebaseAuth_login_succeeded) | |
| Firebase.Auth.login_with_email_and_password(email, password) | |
| func _on_FirebaseAuth_login_succeeded(auth): | |
| db_ref = Firebase.Database.get_database_reference("config", {}) | |
| db_ref.new_data_update.connect(_on_db_data_update) | |
| db_ref.patch_data_update.connect(_on_db_data_update) | |
| db_ref.delete_data_update.connect(_on_db_data_update) | |
| func _on_db_data_update(resource): | |
| print(resource) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment