Skip to content

Commit 703484c

Browse files
committed
tech debt notes
1 parent f0aeacd commit 703484c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

swift-sdk/Internal/IterableUserDefaults.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class IterableUserDefaults {
9797
}
9898
}
9999

100+
// create migration function for email, userId, authToken here
101+
100102
// MARK: Private implementation
101103

102104
private let userDefaults: UserDefaults

swift-sdk/Internal/LocalStorage.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ struct LocalStorage: LocalStorageProtocol {
9999
private let keychain: IterableKeychain
100100

101101
private func moveAuthDataFromUserDefaultsToKeychain() {
102+
// in the future, use the migration function from IterableUserDefaults like with the last push payload
103+
102104
if let userDefaultAuthToken = iterableUserDefaults.authToken, keychain.authToken == nil {
103105
keychain.authToken = userDefaultAuthToken
104106
iterableUserDefaults.authToken = nil

0 commit comments

Comments
 (0)