Files
JQC_iOS_App/JanitorialQC/Utils/Constants.swift
T
2026-05-03 09:29:12 -04:00

25 lines
811 B
Swift

// Utils/Constants.swift
// ---------------------
// Central place for app-wide constants.
// IMPORTANT: Replace baseURL with your actual server URL.
import Foundation
// Explicitly not @MainActor — these constants must be readable from
// any actor context including APIClient and KeychainHelper.
nonisolated enum Constants {
static let baseURL = "https://jqc1.ltservicesinc.com"
nonisolated enum Keychain {
static let accessToken = "com.jqc.accessToken"
static let refreshToken = "com.jqc.refreshToken"
static let userId = "com.jqc.userId"
static let userRole = "com.jqc.userRole"
static let username = "com.jqc.username"
static let displayName = "com.jqc.displayName"
}
static let tokenRefreshBufferMinutes: Double = 5
}