66class_name FirebaseUserData
77extends Reference
88
9- var local_id : String = "" # The uid of the current user.
10- var email : String = ""
11- var email_verified := false # Whether or not the account's email has been verified.
12- var password_updated_at : float = 0 # The timestamp, in milliseconds, that the account password was last changed.
13- var last_login_at : float = 0 # The timestamp, in milliseconds, that the account last logged in at.
14- var created_at : float = 0 # The timestamp, in milliseconds, that the account was created at.
15- var provider_user_info : Array = []
16-
17- var provider_id : String = ""
18- var display_name : String = ""
19- var photo_url : String = ""
20-
21- func _init (p_userdata : Dictionary ) -> void :
9+
10+ var local_id : String = "" # The uid of the current user.
11+ var email : String = ""
12+ var email_verified := false # Whether or not the account's email has been verified.
13+ var password_updated_at : float = 0 # The timestamp, in milliseconds, that the account password was last changed.
14+ var last_login_at : float = 0 # The timestamp, in milliseconds, that the account last logged in at.
15+ var created_at : float = 0 # The timestamp, in milliseconds, that the account was created at.
16+ var provider_user_info : Array = []
17+
18+ var provider_id : String = ""
19+ var display_name : String = ""
20+ var photo_url : String = ""
21+
22+
23+ func _init (p_userdata : Dictionary ) -> void :
2224 local_id = p_userdata .get ("localId" , "" )
2325 email = p_userdata .get ("email" , "" )
2426 email_verified = p_userdata .get ("emailVerified" , false )
@@ -32,9 +34,11 @@ func _init(p_userdata : Dictionary) -> void:
3234 photo_url = provider_user_info [0 ].get ("photoUrl" , "" )
3335 display_name = provider_user_info [0 ].get ("displayName" , "" )
3436
37+
3538func as_text () -> String :
3639 return _to_string ()
3740
41+
3842func _to_string () -> String :
3943 var txt = "local_id : %s \n " % local_id
4044 txt += "email : %s \n " % email
0 commit comments