@@ -437,25 +437,25 @@ func _on_FirebaseAuth_request_completed(result : int, response_code : int, heade
437
437
# Refresh token countdown
438
438
auth_request .emit (1 , auth )
439
439
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
451
442
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 )
457
457
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
459
459
if requesting == Requests .EXCHANGE_TOKEN :
460
460
token_exchanged .emit (false )
461
461
login_failed .emit (res .error , res .error_description )
@@ -464,9 +464,9 @@ func _on_FirebaseAuth_request_completed(result : int, response_code : int, heade
464
464
var sig = signup_failed if auth_request_type == Auth_Type .SIGNUP_EP else login_failed
465
465
sig .emit (res .error .code , res .error .message )
466
466
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
+
470
470
471
471
472
472
# Function used to save the auth data provided by Firebase into an encrypted file
0 commit comments