a neat project
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

bug: only clear state on auth errors

+4
+4
huntington/HuntingtonSession.swift
··· 59 59 let url = base + "/api/mobile-customer-accounts/1.11/contexts/\(contextId)/customers/\(customerId)/accounts?refresh=false" 60 60 let _: AccountsResponse = try await fetch(url) 61 61 isAuthenticated = true 62 + } catch is URLError { 63 + // Network unavailable — trust the cached session, loadData() will surface the error 64 + isAuthenticated = true 62 65 } catch { 66 + // Auth failure (e.g. 401 expired session) — force re-login 63 67 clearState() 64 68 } 65 69 }