Skip to content

Commit 887c2d9

Browse files
authored
chore(predictions): add support for invalid signature exception (#3625)
1 parent e38ba53 commit 887c2d9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/Events/LivenessEvent.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public enum LivenessEventKind {
5252
public static let serviceQuotaExceeded = Self(rawValue: "ServiceQuotaExceededException")
5353
public static let serviceUnavailable = Self(rawValue: "ServiceUnavailableException")
5454
public static let sessionNotFound = Self(rawValue: "SessionNotFoundException")
55+
public static let invalidSignature = Self(rawValue: "InvalidSignatureException")
5556
}
5657
}
5758

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/SPI/AWSPredictionsPlugin+Liveness.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public struct FaceLivenessSessionError: Swift.Error, Equatable {
6666
public static let accessDenied = Self(code: 7)
6767
public static let invalidRegion = Self(code: 8)
6868
public static let invalidURL = Self(code: 9)
69+
public static let invalidSignature = Self(code: 10)
6970
}
7071

7172
extension FaceLivenessSessionError {
@@ -85,6 +86,8 @@ extension FaceLivenessSessionError {
8586
self = .serviceUnavailable
8687
case .sessionNotFound:
8788
self = .sessionNotFound
89+
case .invalidSignature:
90+
self = .invalidSignature
8891
default:
8992
self = .unknown
9093
}

0 commit comments

Comments
 (0)