Skip to content

Commit

Permalink
Fix not login_succeeded if manual refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangSenff authored Mar 18, 2024
1 parent 00a0749 commit c2b0c73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/godot-firebase/auth/auth.gd
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ func _on_FirebaseAuth_request_completed(result : int, response_code : int, heade
begin_refresh_countdown()
# Refresh token countdown
auth_request.emit(1, auth)

if _needs_refresh:
_needs_refresh = false
login_succeeded.emit(auth)
else:
match res.kind:
RESPONSE_SIGNUP:
Expand Down

0 comments on commit c2b0c73

Please sign in to comment.