We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66eb82 commit 15df0e0Copy full SHA for 15df0e0
liveness/src/main/java/com/amplifyframework/ui/liveness/ui/FaceLivenessDetector.kt
@@ -98,6 +98,17 @@ fun FaceLivenessDetector(
98
return
99
}
100
101
+ // fails challenge if session ID is empty
102
+ if (sessionId.isBlank()) {
103
+ LaunchedEffect(key) {
104
+ isFinished = true
105
+ currentOnError.accept(
106
+ FaceLivenessDetectionException.SessionNotFoundException("Session ID cannot be empty.")
107
+ )
108
+ }
109
+ return
110
111
+
112
// Locks portrait orientation for duration of challenge and resets on complete
113
LockPortraitOrientation()
114
0 commit comments