Treat NotFound error as expired in Sign in with QR/Link new device

This commit is contained in:
Hugh Nimmo-Smith
2026-02-09 11:21:32 +00:00
committed by Stefan Ceriu
parent 4b4b060bff
commit 2dfda98913
2 changed files with 5 additions and 3 deletions
@@ -195,7 +195,9 @@ private extension QRCodeLoginError {
.connectionInsecure
case .UnsupportedProtocol:
.linkingNotSupported
case .Unknown, .NotFound, .MissingSecretsBackup, .DeviceIdAlreadyInUse, .UnableToCreateDevice:
case .NotFound: // The most likely cause of a .NotFound is that the rendezvous session expired on the server side
.expired
case .Unknown, .MissingSecretsBackup, .DeviceIdAlreadyInUse, .UnableToCreateDevice:
.unknown
}
}