@@ -437,25 +437,25 @@ func _on_FirebaseAuth_request_completed(result : int, response_code : int, heade
437437 # Refresh token countdown
438438 auth_request .emit (1 , auth )
439439
440- if _needs_refresh :
441- _needs_refresh = false
442- login_succeeded .emit (auth )
443- else :
444- match res .kind :
445- RESPONSE_SIGNUP :
446- auth = get_clean_keys (res )
447- signup_succeeded .emit (auth )
448- begin_refresh_countdown ()
449- RESPONSE_SIGNIN , RESPONSE_ASSERTION , RESPONSE_CUSTOM_TOKEN :
450- auth = get_clean_keys (res )
440+ if _needs_refresh :
441+ _needs_refresh = false
451442 login_succeeded .emit (auth )
452- begin_refresh_countdown ()
453- RESPONSE_USERDATA :
454- var userdata = FirebaseUserData .new (res .users [0 ])
455- userdata_received .emit (userdata )
456- auth_request .emit (1 , auth )
443+ else :
444+ match res .kind :
445+ RESPONSE_SIGNUP :
446+ auth = get_clean_keys (res )
447+ signup_succeeded .emit (auth )
448+ begin_refresh_countdown ()
449+ RESPONSE_SIGNIN , RESPONSE_ASSERTION , RESPONSE_CUSTOM_TOKEN :
450+ auth = get_clean_keys (res )
451+ login_succeeded .emit (auth )
452+ begin_refresh_countdown ()
453+ RESPONSE_USERDATA :
454+ var userdata = FirebaseUserData .new (res .users [0 ])
455+ userdata_received .emit (userdata )
456+ auth_request .emit (1 , auth )
457457 else :
458- # error message would be INVALID_EMAIL, EMAIL_NOT_FOUND, INVALID_PASSWORD, USER_DISABLED or WEAK_PASSWORD
458+ # error message would be INVALID_EMAIL, EMAIL_NOT_FOUND, INVALID_PASSWORD, USER_DISABLED or WEAK_PASSWORD
459459 if requesting == Requests .EXCHANGE_TOKEN :
460460 token_exchanged .emit (false )
461461 login_failed .emit (res .error , res .error_description )
@@ -464,9 +464,9 @@ func _on_FirebaseAuth_request_completed(result : int, response_code : int, heade
464464 var sig = signup_failed if auth_request_type == Auth_Type .SIGNUP_EP else login_failed
465465 sig .emit (res .error .code , res .error .message )
466466 auth_request .emit (res .error .code , res .error .message )
467-
468- requesting = Requests .NONE
469- auth_request_type = Auth_Type . NONE
467+ requesting = Requests . NONE
468+ auth_request_type = Auth_Type .NONE
469+
470470
471471
472472# Function used to save the auth data provided by Firebase into an encrypted file
0 commit comments