Skip to content

Commit 301f637

Browse files
committed
fix: 앱이 처음 실행되는 플래그가 삭제되어 자동 로그아웃이 되어 해결
1 parent 417afa9 commit 301f637

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

DevLog/Storage/Persistence/UserDefaultsStore.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ final class UserDefaultsStore {
4040

4141
func removeAll() {
4242
guard let bundleIdentifier = Bundle.main.bundleIdentifier else { return }
43+
let firstLaunch = userDefaults.object(forKey: "isFirstLaunch")
4344
userDefaults.removePersistentDomain(forName: bundleIdentifier)
45+
if let firstLaunch {
46+
userDefaults.set(firstLaunch, forKey: "isFirstLaunch")
47+
}
4448
}
4549
}

0 commit comments

Comments
 (0)