react-native-authsignal 2.0.0-alpha2 → 2.0.0-alpha3
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.
|
@@ -121,7 +121,7 @@ class AuthsignalInAppModule(private val reactContext: ReactApplicationContext) :
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
private fun launch(promise: Promise, fn: suspend (client:
|
|
124
|
+
private fun launch(promise: Promise, fn: suspend (client: AuthsignalInApp) -> Unit) {
|
|
125
125
|
coroutineScope.launch {
|
|
126
126
|
authsignal?.let {
|
|
127
127
|
fn(it)
|
|
@@ -33,7 +33,7 @@ class AuthsignalQRCodeModule(private val reactContext: ReactApplicationContext)
|
|
|
33
33
|
@ReactMethod
|
|
34
34
|
fun initialize(tenantID: String?, baseURL: String?, promise: Promise) {
|
|
35
35
|
Log.d("AuthsignalQRCodeModule", "initialize: $tenantID, $baseURL")
|
|
36
|
-
authsignal =
|
|
36
|
+
authsignal = AuthsignalQRCode(tenantID!!, baseURL!!)
|
|
37
37
|
|
|
38
38
|
promise.resolve(null)
|
|
39
39
|
}
|
|
@@ -147,7 +147,7 @@ class AuthsignalQRCodeModule(private val reactContext: ReactApplicationContext)
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
private fun launch(promise: Promise, fn: suspend (client:
|
|
150
|
+
private fun launch(promise: Promise, fn: suspend (client: AuthsignalQRCode) -> Unit) {
|
|
151
151
|
coroutineScope.launch {
|
|
152
152
|
authsignal?.let {
|
|
153
153
|
fn(it)
|