react-native-authsignal 2.2.6 → 2.2.8
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.
|
@@ -172,7 +172,12 @@ class AuthsignalInAppModule(private val reactContext: ReactApplicationContext) :
|
|
|
172
172
|
|
|
173
173
|
promise.reject(errorCode, response.error)
|
|
174
174
|
} else {
|
|
175
|
-
|
|
175
|
+
val data = response.data!!
|
|
176
|
+
val map = Arguments.createMap()
|
|
177
|
+
map.putBoolean("isVerified", data.isVerified)
|
|
178
|
+
map.putString("token", data.token)
|
|
179
|
+
map.putString("userId", data.userId)
|
|
180
|
+
promise.resolve(map)
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
}
|
|
@@ -219,7 +219,13 @@ class AuthsignalInAppModule: NSObject {
|
|
|
219
219
|
if let error = response.error {
|
|
220
220
|
reject(response.errorCode ?? "unexpected_error", error, nil)
|
|
221
221
|
} else {
|
|
222
|
-
|
|
222
|
+
let verifyPinResponse: [String: Any?] = [
|
|
223
|
+
"isVerified": response.data!.isVerified,
|
|
224
|
+
"token": response.data!.token,
|
|
225
|
+
"userId": response.data!.userId,
|
|
226
|
+
]
|
|
227
|
+
|
|
228
|
+
resolve(verifyPinResponse)
|
|
223
229
|
}
|
|
224
230
|
}
|
|
225
231
|
}
|
package/package.json
CHANGED
|
@@ -19,18 +19,24 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
20
|
s.dependency 'Authsignal', '2.2.2'
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
s
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
23
|
+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
24
|
+
if respond_to?(:install_modules_dependencies, true)
|
|
25
|
+
install_modules_dependencies(s)
|
|
26
|
+
else
|
|
27
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
29
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
30
|
+
s.pod_target_xcconfig = {
|
|
31
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
32
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
33
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
34
|
+
}
|
|
35
|
+
s.dependency "React-Codegen"
|
|
36
|
+
s.dependency "RCT-Folly"
|
|
37
|
+
s.dependency "RCTRequired"
|
|
38
|
+
s.dependency "RCTTypeSafety"
|
|
39
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
40
|
+
end
|
|
35
41
|
end
|
|
36
42
|
end
|