Files
JQC_iOS_App/JanitorialQC/Utils/Constants.swift
T
2026-05-02 11:46:28 -04:00

28 lines
1.5 KiB
Swift

// Utils/Constants.swift
// ---------------------
// Central place for app-wide constants.
// IMPORTANT: Replace the baseURL with your actual server URL.
import Foundation
enum Constants {
// ── Server ────────────────────────────────────────────────────────────
/// Your JanitorialQC server base URL. No trailing slash.
/// Example: "https://your-domain.com"
static let baseURL = "https://jqc1.ltservicesinc.com"
// ── Keychain keys ─────────────────────────────────────────────────────
enum Keychain {
static let accessToken = "com.JanitorialQC.accessToken"
static let refreshToken = "com.JanitorialQC.refreshToken"
static let userId = "com.JanitorialQC.userId"
static let userRole = "com.JanitorialQC.userRole"
static let username = "com.JanitorialQC.username"
static let displayName = "com.JanitorialQC.displayName"
}
// ── Sync ──────────────────────────────────────────────────────────────
/// How many minutes before the access token expires to trigger a refresh
static let tokenRefreshBufferMinutes: Double = 5
}