Treat NotFound error as expired in Sign in with QR/Link new device
This commit is contained in:
committed by
Stefan Ceriu
parent
94220bf40e
commit
90800440d7
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user