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