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 94220bf40e
commit 90800440d7
2 changed files with 5 additions and 3 deletions

View File

@@ -259,13 +259,13 @@ private extension HumanQrLoginError {
.qrCodeError(.declined)
case .LinkingNotSupported:
.qrCodeError(.linkingNotSupported)
case .Expired:
case .Expired, .NotFound: // The most likely cause of a .NotFound is that the rendezvous session expired on the server side
.qrCodeError(.expired)
case .SlidingSyncNotAvailable:
.qrCodeError(.deviceNotSupported)
case .OtherDeviceNotSignedIn:
.qrCodeError(.deviceNotSignedIn)
case .Unknown, .NotFound, .OidcMetadataInvalid, .CheckCodeAlreadySent, .CheckCodeCannotBeSent:
case .Unknown, .OidcMetadataInvalid, .CheckCodeAlreadySent, .CheckCodeCannotBeSent:
.qrCodeError(.unknown)
}
}

View File

@@ -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
}
}