react-native-authsignal 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -84,18 +84,18 @@ class AuthsignalPasskeyModule(private val reactContext: ReactApplicationContext)
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
@ReactMethod
|
|
87
|
-
fun shouldPromptToCreatePasskey(promise: Promise) {
|
|
87
|
+
fun shouldPromptToCreatePasskey(username: String?, promise: Promise) {
|
|
88
88
|
launch(promise) {
|
|
89
|
-
val response = it.shouldPromptToCreatePasskey()
|
|
89
|
+
val response = it.shouldPromptToCreatePasskey(username)
|
|
90
90
|
|
|
91
91
|
promise.resolve(response.data ?: false)
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@ReactMethod
|
|
96
|
-
fun isAvailableOnDevice(
|
|
96
|
+
fun isAvailableOnDevice(promise: Promise) {
|
|
97
97
|
launch(promise) {
|
|
98
|
-
val response = it.isAvailableOnDevice(
|
|
98
|
+
val response = it.isAvailableOnDevice()
|
|
99
99
|
|
|
100
100
|
promise.resolve(response.data ?: false)
|
|
101
101
|
}
|