replace mock passport flows with live server integration
CI / test (push) Has been cancelled

Switch the app to the real passport enrollment, dashboard, device, alert, and challenge APIs so it can pair with idp.global and act on server-backed state instead of demo data.
This commit is contained in:
2026-04-20 13:21:39 +00:00
parent 271d9657bf
commit a298b5e421
7 changed files with 1136 additions and 48 deletions
+5 -19
View File
@@ -12,33 +12,19 @@ extension ApprovalRequest {
}
var locationSummary: String {
"Berlin, DE"
locationSummaryText ?? "Location not required"
}
var deviceSummary: String {
switch kind {
case .signIn:
"Safari on Berlin iPhone"
case .accessGrant:
"Chrome on iPad Pro"
case .elevatedAction:
"Berlin MacBook Pro"
}
deviceSummaryText ?? "Trusted passport device"
}
var networkSummary: String {
switch kind {
case .signIn:
"Home Wi-Fi"
case .accessGrant:
"Shared office Wi-Fi"
case .elevatedAction:
"Ethernet"
}
networkSummaryText ?? source
}
var ipSummary: String {
risk == .elevated ? "84.187.12.44" : "84.187.12.36"
ipSummaryText ?? "n/a"
}
var trustColor: Color {
@@ -66,7 +52,7 @@ extension ApprovalRequest {
}
var expiresAt: Date {
createdAt.addingTimeInterval(risk == .elevated ? 180 : 300)
expiresAtDate ?? createdAt.addingTimeInterval(risk == .elevated ? 180 : 300)
}
}