diff --git a/iosApp/iosApp/iOSApp.swift b/iosApp/iosApp/iOSApp.swift index 30e9b3b..c0eef8c 100644 --- a/iosApp/iosApp/iOSApp.swift +++ b/iosApp/iosApp/iOSApp.swift @@ -23,6 +23,10 @@ struct iOSApp: App { init() { UITestRuntime.configureForLaunch() + // Set Keychain delegate BEFORE DataManager.initialize() so token can be + // loaded from Keychain on startup (Kotlin/Native can't use SecItem* directly) + TokenManager.Companion.shared.keychainDelegate = KeychainHelper.shared + // Initialize DataManager with platform-specific managers // This must be done before any other operations that access DataManager DataManager.shared.initialize(