[2026-07-resubmission] Add guest browsing flow with App Attest session for App Review resubmission
Adds a pre-login public store locator (guest session via DeviceCheck/App Attest, keychain-backed token storage) so the app no longer forces sign-in before showing any content, plus updated support URL metadata.
This commit is contained in:
@@ -9,6 +9,11 @@ enum ApiModule: Sendable {
|
||||
}
|
||||
|
||||
enum ApiConfig {
|
||||
// Atomenta directly — customer/store/cards/orders/addresses/etc. Only
|
||||
// the public locator (session, locations, categories, stores-by-location,
|
||||
// store detail) goes through pediFoodsBFFURL below via explicit
|
||||
// baseURLOverride on those specific requests, per
|
||||
// docs/plans/app-migrate-atomenta-calls-to-pedifoods-bff.md.
|
||||
static var baseURL: URL {
|
||||
let raw = ProcessInfo.processInfo.environment["ATOMENTA_API_URL"] ?? "https://atomenta.com.br"
|
||||
return URL(string: raw) ?? URL(string: "https://atomenta.com.br")!
|
||||
@@ -19,6 +24,15 @@ enum ApiConfig {
|
||||
return URL(string: raw) ?? URL(string: "http://localhost:8787")!
|
||||
}
|
||||
|
||||
/// BFF (`PediFoods_web`) base URL. The public store locator (guest session,
|
||||
/// states/cities/stores-by-location, store detail) must go through here —
|
||||
/// never call `baseURL` (Atomenta) directly for these, per
|
||||
/// docs/plans/app-migrate-atomenta-calls-to-pedifoods-bff.md.
|
||||
static var pediFoodsBFFURL: URL {
|
||||
let raw = ProcessInfo.processInfo.environment["PEDIFOODS_BFF_URL"] ?? "https://pedifoods.com.br"
|
||||
return URL(string: raw) ?? URL(string: "https://pedifoods.com.br")!
|
||||
}
|
||||
|
||||
static var featureControlEnvironment: String {
|
||||
let raw = ProcessInfo.processInfo.environment["FEATURE_CONTROL_ENVIRONMENT"] ?? "production"
|
||||
let clean = raw.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
|
||||
Reference in New Issue
Block a user