05/02 Phase B

This commit is contained in:
Nguyen Ngo
2026-05-02 11:46:28 -04:00
parent ef0a6448cf
commit 8bdcbecd73
22 changed files with 3262 additions and 69 deletions
+27
View File
@@ -0,0 +1,27 @@
// 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
}