Skip to content

Commit 92176c4

Browse files
Turn off sync on logout
1 parent 2881e2b commit 92176c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BitwardenShared/Core/Auth/Repositories/AuthRepository.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ extension DefaultAuthRepository: AuthRepository {
760760
let userId = try await stateService.getAccountIdOrActiveId(userId: userId)
761761

762762
// Clear all user data.
763+
try await stateService.setSyncToAuthenticator(false, userId: userId)
763764
try await biometricsRepository.setBiometricUnlockKey(authKey: nil)
764765
try await keychainService.deleteItems(for: userId)
765766
await vaultTimeoutService.remove(userId: userId)

0 commit comments

Comments
 (0)