Skip to content

Commit 3b28ccc

Browse files
committed
Reset Last.fm connection on app preference reset
1 parent 0bbd3e3 commit 3b28ccc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Views/Settings/LibraryTabView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ struct LibraryTabView: View {
394394
UserDefaults.standard.removePersistentDomain(forName: bundleID)
395395
UserDefaults.standard.synchronize()
396396
Logger.info("All app preferences reset along with library data")
397+
398+
// Clear Last.fm connection from Keychain
399+
KeychainManager.delete(key: KeychainManager.Keys.lastfmSessionKey)
397400
}
398401
}
399402

0 commit comments

Comments
 (0)