fix: stop timers on logout (#5498)

This commit is contained in:
Anshuman Pandey
2025-04-24 18:26:28 +05:30
committed by GitHub
parent 85d8f8c3ae
commit 2ce44b734f

View File

@@ -133,7 +133,10 @@ final class UserManager: UserManagerSyncable {
backingLastDisplayedAt = nil
backingExpiresAt = nil
Formbricks.language = "default"
updateQueue?.reset()
syncTimer?.invalidate()
syncTimer = nil
updateQueue?.cleanup()
if isUserIdDefined {
Formbricks.logger?.debug("Successfully logged out user and reset the user state.")