react-native-authsignal 2.3.1 → 2.3.3

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.
@@ -77,5 +77,5 @@ dependencies {
77
77
 
78
78
  implementation "androidx.browser:browser:1.2.0"
79
79
 
80
- implementation("com.authsignal:authsignal-android:3.2.2")
80
+ implementation("com.authsignal:authsignal-android:3.3.0")
81
81
  }
@@ -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(username: String?, promise: Promise) {
96
+ fun isAvailableOnDevice(promise: Promise) {
97
97
  launch(promise) {
98
- val response = it.isAvailableOnDevice(username)
98
+ val response = it.isAvailableOnDevice()
99
99
 
100
100
  promise.resolve(response.data ?: false)
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-authsignal",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "The official Authsignal React Native library.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",