From e443d0334859d2e8823cfda6646b6b71c38674dc Mon Sep 17 00:00:00 2001 From: Vincent Tran Date: Wed, 25 Jun 2025 23:20:02 -0700 Subject: [PATCH] Remove challenge options from the FaceLivenessDetector key --- .../amplifyframework/ui/liveness/ui/FaceLivenessDetector.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/liveness/src/main/java/com/amplifyframework/ui/liveness/ui/FaceLivenessDetector.kt b/liveness/src/main/java/com/amplifyframework/ui/liveness/ui/FaceLivenessDetector.kt index 181e9acf..4eae7dc0 100644 --- a/liveness/src/main/java/com/amplifyframework/ui/liveness/ui/FaceLivenessDetector.kt +++ b/liveness/src/main/java/com/amplifyframework/ui/liveness/ui/FaceLivenessDetector.kt @@ -114,7 +114,7 @@ fun FaceLivenessDetector( challengeOptions: ChallengeOptions = ChallengeOptions(), ) { val scope = rememberCoroutineScope() - val key = DetectorStateKey(sessionId, region, credentialsProvider, challengeOptions) + val key = DetectorStateKey(sessionId, region, credentialsProvider) var isFinished by remember(key) { mutableStateOf(false) } val currentOnComplete by rememberUpdatedState(onComplete) val currentOnError by rememberUpdatedState(onError) @@ -446,8 +446,7 @@ internal fun ChallengeView( internal data class DetectorStateKey( val sessionId: String, val region: String, - val credentialsProvider: AWSCredentialsProvider?, - val challengeOptions: ChallengeOptions + val credentialsProvider: AWSCredentialsProvider? ) data class ChallengeOptions(