SyncUserContext.swift 8 lignes · 370 octets
import Foundation

/// Connected-user identity for screens that need the login (kanban « Mes tâches »
/// filter, compte-rendu author). Reads `SyncCredentialsStore.userName`, exactly as
/// the Kotlin screens read it from the credentials store; empty when logged out.
enum SyncUserContext {
    static var userName: String { SyncCredentialsStore().userName ?? "" }
}