@hawcx/react-native-sdk 1.0.7 → 1.0.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.
Files changed (23) hide show
  1. package/CHANGELOG.md +2 -8
  2. package/README.md +1 -1
  3. package/android/.settings/org.eclipse.buildship.core.prefs +2 -0
  4. package/android/build.gradle +2 -2
  5. package/android/libs/hawcx-5.1.4.aar +0 -0
  6. package/example/ios/Podfile.lock +2 -2
  7. package/example/package-lock.json +4 -4
  8. package/example/package.json +2 -2
  9. package/ios/Frameworks/HawcxFramework.xcframework/Info.plist +5 -5
  10. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/HawcxFramework +0 -0
  11. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios.abi.json +2 -2
  12. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios.private.swiftinterface +21 -21
  13. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios.swiftinterface +21 -21
  14. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/HawcxFramework +0 -0
  15. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.abi.json +2 -2
  16. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +21 -21
  17. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface +21 -21
  18. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json +2 -2
  19. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +21 -21
  20. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +21 -21
  21. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/_CodeSignature/CodeResources +8 -8
  22. package/package.json +1 -1
  23. package/android/libs/hawcx-5.1.2.aar +0 -0
package/CHANGELOG.md CHANGED
@@ -1,13 +1,7 @@
1
1
  # Changelog
2
2
 
3
- ## [1.0.7] - YYYY-MM-DD
4
- - TODO: add release notes
5
-
6
- ## [1.0.6] - YYYY-MM-DD
7
- - TODO: add release notes
8
-
9
- ## [1.0.5] - YYYY-MM-DD
10
- - TODO: add release notes
3
+ ## [1.0.8] - 2026-01-21
4
+ - Android biometrics restriction issue fixed
11
5
 
12
6
  ## [1.0.4] - 2025-11-28
13
7
  - Include Android sources in npm package and clarify linking error message.
package/README.md CHANGED
@@ -11,7 +11,7 @@ Official React Native bindings for the Hawcx V5 mobile authentication platform.
11
11
  ## Installation
12
12
 
13
13
  ```bash
14
- npm install @hawcx/react-native-sdk@1.0.7
14
+ npm install @hawcx/react-native-sdk@1.0.8
15
15
  # or yarn add @hawcx/react-native-sdk
16
16
  ```
17
17
 
@@ -0,0 +1,2 @@
1
+ connection.project.dir=../../../../android
2
+ eclipse.preferences.version=1
@@ -22,7 +22,7 @@ def safeExtGet(prop, fallback) {
22
22
  }
23
23
 
24
24
  group = 'com.hawcx.reactnative'
25
- version = project.findProperty('HAWCX_REACT_NATIVE_ANDROID_VERSION') ?: '1.0.7'
25
+ version = project.findProperty('HAWCX_REACT_NATIVE_ANDROID_VERSION') ?: '1.0.8'
26
26
 
27
27
  repositories {
28
28
  mavenCentral()
@@ -124,7 +124,7 @@ afterEvaluate {
124
124
  }
125
125
 
126
126
  dependencies {
127
- api("api.hawcx:hawcx:5.1.2")
127
+ api("api.hawcx:hawcx:5.1.4")
128
128
  def reactNativeVersion = safeExtGet('reactNativeAndroidVersion', '0.73.9')
129
129
  implementation "com.facebook.react:react-android:$reactNativeVersion"
130
130
  implementation 'androidx.annotation:annotation:1.8.1'
Binary file
@@ -11,7 +11,7 @@ PODS:
11
11
  - ReactCommon/turbomodule/core (= 0.73.9)
12
12
  - fmt (6.2.1)
13
13
  - glog (0.3.5)
14
- - HawcxReactNative (1.0.7):
14
+ - HawcxReactNative (1.0.8):
15
15
  - React-Core
16
16
  - hermes-engine (0.73.9):
17
17
  - hermes-engine/Pre-built (= 0.73.9)
@@ -1236,7 +1236,7 @@ SPEC CHECKSUMS:
1236
1236
  FBReactNativeSpec: 4fe1d8c2fadc7949344b197d933f76b40401aac5
1237
1237
  fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
1238
1238
  glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
1239
- HawcxReactNative: a68fa54f0e00f0e72d9c834df3808fc27b2f0e4d
1239
+ HawcxReactNative: 29f6cec36efc6a927efef6df061d7f7d71306789
1240
1240
  hermes-engine: ed62e0dcd013bf4a3b487f164feec1c4e705b5b5
1241
1241
  libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
1242
1242
  RCT-Folly: cd21f1661364f975ae76b3308167ad66b09f53f5
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "hawcx-react-native-sdk-example",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "hawcx-react-native-sdk-example",
9
- "version": "1.0.7",
9
+ "version": "1.0.8",
10
10
  "dependencies": {
11
- "@hawcx/react-native-sdk": "1.0.7",
11
+ "@hawcx/react-native-sdk": "1.0.8",
12
12
  "react": "18.2.0",
13
13
  "react-native": "0.73.9",
14
14
  "react-native-safe-area-context": "4.10.5",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "..": {
31
31
  "name": "@hawcx/react-native-sdk",
32
- "version": "1.0.7",
32
+ "version": "1.0.8",
33
33
  "license": "MIT",
34
34
  "devDependencies": {
35
35
  "@react-native/eslint-config": "^0.74.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hawcx-react-native-sdk-example",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "start": "react-native start",
@@ -9,7 +9,7 @@
9
9
  "lint": "eslint . --ext .js,.ts,.tsx"
10
10
  },
11
11
  "dependencies": {
12
- "@hawcx/react-native-sdk": "1.0.7",
12
+ "@hawcx/react-native-sdk": "1.0.8",
13
13
  "react": "18.2.0",
14
14
  "react-native": "0.73.9",
15
15
  "react-native-safe-area-context": "4.10.5",
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>HawcxFramework.framework/HawcxFramework</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>HawcxFramework.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>x86_64</string>
17
18
  </array>
18
19
  <key>SupportedPlatform</key>
19
20
  <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
20
23
  </dict>
21
24
  <dict>
22
25
  <key>BinaryPath</key>
23
26
  <string>HawcxFramework.framework/HawcxFramework</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>HawcxFramework.framework</string>
28
31
  <key>SupportedArchitectures</key>
29
32
  <array>
30
33
  <string>arm64</string>
31
- <string>x86_64</string>
32
34
  </array>
33
35
  <key>SupportedPlatform</key>
34
36
  <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -9212,14 +9212,14 @@
9212
9212
  {
9213
9213
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV5.swift",
9214
9214
  "kind": "BooleanLiteral",
9215
- "offset": 1596,
9215
+ "offset": 1661,
9216
9216
  "length": 5,
9217
9217
  "value": "false"
9218
9218
  },
9219
9219
  {
9220
9220
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV5.swift",
9221
9221
  "kind": "BooleanLiteral",
9222
- "offset": 1639,
9222
+ "offset": 1704,
9223
9223
  "length": 5,
9224
9224
  "value": "false"
9225
9225
  },
@@ -72,22 +72,22 @@ public struct SessionDetails : Swift.Codable {
72
72
  public let city: Swift.String?
73
73
  public let state: Swift.String?
74
74
  public let country: Swift.String?
75
- #if compiler(>=5.3) && $NonescapableTypes
75
+ #if compiler(>=5.3)
76
76
  public var derivedOsDetails: Swift.String? {
77
77
  get
78
78
  }
79
79
  #endif
80
- #if compiler(>=5.3) && $NonescapableTypes
80
+ #if compiler(>=5.3)
81
81
  public var derivedBrowserWithVersion: Swift.String? {
82
82
  get
83
83
  }
84
84
  #endif
85
- #if compiler(>=5.3) && $NonescapableTypes
85
+ #if compiler(>=5.3)
86
86
  public var derivedDeviceType: Swift.String? {
87
87
  get
88
88
  }
89
89
  #endif
90
- #if compiler(>=5.3) && $NonescapableTypes
90
+ #if compiler(>=5.3)
91
91
  public var derivedLocation: Swift.String? {
92
92
  get
93
93
  }
@@ -103,32 +103,32 @@ public struct Device : Swift.Codable, Swift.Identifiable, Swift.Hashable {
103
103
  public let model: Swift.String?
104
104
  public let osVersion: Swift.String?
105
105
  public let loginTime: Swift.String?
106
- #if compiler(>=5.3) && $NonescapableTypes
106
+ #if compiler(>=5.3)
107
107
  public var osDetails: Swift.String? {
108
108
  get
109
109
  }
110
110
  #endif
111
- #if compiler(>=5.3) && $NonescapableTypes
111
+ #if compiler(>=5.3)
112
112
  public var browserWithVersion: Swift.String? {
113
113
  get
114
114
  }
115
115
  #endif
116
- #if compiler(>=5.3) && $NonescapableTypes
116
+ #if compiler(>=5.3)
117
117
  public var deviceType: Swift.String? {
118
118
  get
119
119
  }
120
120
  #endif
121
- #if compiler(>=5.3) && $NonescapableTypes
121
+ #if compiler(>=5.3)
122
122
  public var sessionDetails: [HawcxFramework.Session]? {
123
123
  get
124
124
  }
125
125
  #endif
126
126
  public static func == (lhs: HawcxFramework.Device, rhs: HawcxFramework.Device) -> Swift.Bool
127
127
  public func hash(into hasher: inout Swift.Hasher)
128
- #if compiler(>=5.3) && $NonescapableTypes
128
+ #if compiler(>=5.3)
129
129
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, platform: Swift.String? = nil, browserName: Swift.String? = nil, model: Swift.String? = nil, osVersion: Swift.String? = nil, loginTime: Swift.String? = nil)
130
130
  #endif
131
- #if compiler(>=5.3) && $NonescapableTypes
131
+ #if compiler(>=5.3)
132
132
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, osDetails: Swift.String?, browserWithVersion: Swift.String?, deviceType: Swift.String?, sessionDetails: [HawcxFramework.Session]?)
133
133
  #endif
134
134
  public typealias ID = Foundation.UUID
@@ -189,7 +189,7 @@ public enum AuthV4ErrorCode : Swift.String, Swift.Error {
189
189
  case oauthExchangeFailed
190
190
  case oauthTokenVerificationFailed
191
191
  case fingerprintError
192
- #if compiler(>=5.3) && $NonescapableTypes
192
+ #if compiler(>=5.3)
193
193
  public init?(rawValue: Swift.String)
194
194
  #endif
195
195
  public typealias RawValue = Swift.String
@@ -202,7 +202,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
202
202
  case invalidPin
203
203
  case failedApprove
204
204
  case networkError
205
- #if compiler(>=5.3) && $NonescapableTypes
205
+ #if compiler(>=5.3)
206
206
  public init?(rawValue: Swift.String)
207
207
  #endif
208
208
  public typealias RawValue = Swift.String
@@ -212,7 +212,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
212
212
  }
213
213
  public protocol AuthV4Callback : AnyObject {
214
214
  func onOtpRequired()
215
- #if compiler(>=5.3) && $NonescapableTypes
215
+ #if compiler(>=5.3)
216
216
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
217
217
  #endif
218
218
  func onError(errorCode: HawcxFramework.AuthV4ErrorCode, errorMessage: Swift.String)
@@ -233,7 +233,7 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
233
233
  case oauthConfigurationMissing
234
234
  case oauthExchangeFailed
235
235
  case oauthTokenVerificationFailed
236
- #if compiler(>=5.3) && $NonescapableTypes
236
+ #if compiler(>=5.3)
237
237
  public init?(rawValue: Swift.String)
238
238
  #endif
239
239
  public typealias RawValue = Swift.String
@@ -243,14 +243,14 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
243
243
  }
244
244
  public protocol AuthV5Callback : AnyObject {
245
245
  func onOtpRequired()
246
- #if compiler(>=5.3) && $NonescapableTypes
246
+ #if compiler(>=5.3)
247
247
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
248
248
  #endif
249
249
  func onError(errorCode: HawcxFramework.AuthV5ErrorCode, errorMessage: Swift.String)
250
- #if compiler(>=5.3) && $NonescapableTypes
250
+ #if compiler(>=5.3)
251
251
  func onAuthorizationCode(code: Swift.String, expiresIn: Swift.Int?)
252
252
  #endif
253
- #if compiler(>=5.3) && $NonescapableTypes
253
+ #if compiler(>=5.3)
254
254
  func onAdditionalVerificationRequired(sessionId: Swift.String, detail: Swift.String?)
255
255
  #endif
256
256
  }
@@ -260,7 +260,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
260
260
  }
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
- #if compiler(>=5.3) && $NonescapableTypes
263
+ #if compiler(>=5.3)
264
264
  public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
@@ -273,14 +273,14 @@ public class HawcxSDK {
273
273
  public func setAPNsDeviceToken(_ tokenData: Foundation.Data)
274
274
  public func userDidAuthenticate()
275
275
  public func handlePushNotification(userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool
276
- #if compiler(>=5.3) && $NonescapableTypes
276
+ #if compiler(>=5.3)
277
277
  public func approveLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
278
278
  #endif
279
- #if compiler(>=5.3) && $NonescapableTypes
279
+ #if compiler(>=5.3)
280
280
  public func declineLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
281
281
  #endif
282
282
  public func getLastLoggedInUser() -> Swift.String
283
- #if compiler(>=5.3) && $NonescapableTypes
283
+ #if compiler(>=5.3)
284
284
  @discardableResult
285
285
  public func storeBackendOAuthTokens(accessToken: Swift.String, refreshToken: Swift.String?, forUser userId: Swift.String) -> Swift.Bool
286
286
  #endif
@@ -72,22 +72,22 @@ public struct SessionDetails : Swift.Codable {
72
72
  public let city: Swift.String?
73
73
  public let state: Swift.String?
74
74
  public let country: Swift.String?
75
- #if compiler(>=5.3) && $NonescapableTypes
75
+ #if compiler(>=5.3)
76
76
  public var derivedOsDetails: Swift.String? {
77
77
  get
78
78
  }
79
79
  #endif
80
- #if compiler(>=5.3) && $NonescapableTypes
80
+ #if compiler(>=5.3)
81
81
  public var derivedBrowserWithVersion: Swift.String? {
82
82
  get
83
83
  }
84
84
  #endif
85
- #if compiler(>=5.3) && $NonescapableTypes
85
+ #if compiler(>=5.3)
86
86
  public var derivedDeviceType: Swift.String? {
87
87
  get
88
88
  }
89
89
  #endif
90
- #if compiler(>=5.3) && $NonescapableTypes
90
+ #if compiler(>=5.3)
91
91
  public var derivedLocation: Swift.String? {
92
92
  get
93
93
  }
@@ -103,32 +103,32 @@ public struct Device : Swift.Codable, Swift.Identifiable, Swift.Hashable {
103
103
  public let model: Swift.String?
104
104
  public let osVersion: Swift.String?
105
105
  public let loginTime: Swift.String?
106
- #if compiler(>=5.3) && $NonescapableTypes
106
+ #if compiler(>=5.3)
107
107
  public var osDetails: Swift.String? {
108
108
  get
109
109
  }
110
110
  #endif
111
- #if compiler(>=5.3) && $NonescapableTypes
111
+ #if compiler(>=5.3)
112
112
  public var browserWithVersion: Swift.String? {
113
113
  get
114
114
  }
115
115
  #endif
116
- #if compiler(>=5.3) && $NonescapableTypes
116
+ #if compiler(>=5.3)
117
117
  public var deviceType: Swift.String? {
118
118
  get
119
119
  }
120
120
  #endif
121
- #if compiler(>=5.3) && $NonescapableTypes
121
+ #if compiler(>=5.3)
122
122
  public var sessionDetails: [HawcxFramework.Session]? {
123
123
  get
124
124
  }
125
125
  #endif
126
126
  public static func == (lhs: HawcxFramework.Device, rhs: HawcxFramework.Device) -> Swift.Bool
127
127
  public func hash(into hasher: inout Swift.Hasher)
128
- #if compiler(>=5.3) && $NonescapableTypes
128
+ #if compiler(>=5.3)
129
129
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, platform: Swift.String? = nil, browserName: Swift.String? = nil, model: Swift.String? = nil, osVersion: Swift.String? = nil, loginTime: Swift.String? = nil)
130
130
  #endif
131
- #if compiler(>=5.3) && $NonescapableTypes
131
+ #if compiler(>=5.3)
132
132
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, osDetails: Swift.String?, browserWithVersion: Swift.String?, deviceType: Swift.String?, sessionDetails: [HawcxFramework.Session]?)
133
133
  #endif
134
134
  public typealias ID = Foundation.UUID
@@ -189,7 +189,7 @@ public enum AuthV4ErrorCode : Swift.String, Swift.Error {
189
189
  case oauthExchangeFailed
190
190
  case oauthTokenVerificationFailed
191
191
  case fingerprintError
192
- #if compiler(>=5.3) && $NonescapableTypes
192
+ #if compiler(>=5.3)
193
193
  public init?(rawValue: Swift.String)
194
194
  #endif
195
195
  public typealias RawValue = Swift.String
@@ -202,7 +202,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
202
202
  case invalidPin
203
203
  case failedApprove
204
204
  case networkError
205
- #if compiler(>=5.3) && $NonescapableTypes
205
+ #if compiler(>=5.3)
206
206
  public init?(rawValue: Swift.String)
207
207
  #endif
208
208
  public typealias RawValue = Swift.String
@@ -212,7 +212,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
212
212
  }
213
213
  public protocol AuthV4Callback : AnyObject {
214
214
  func onOtpRequired()
215
- #if compiler(>=5.3) && $NonescapableTypes
215
+ #if compiler(>=5.3)
216
216
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
217
217
  #endif
218
218
  func onError(errorCode: HawcxFramework.AuthV4ErrorCode, errorMessage: Swift.String)
@@ -233,7 +233,7 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
233
233
  case oauthConfigurationMissing
234
234
  case oauthExchangeFailed
235
235
  case oauthTokenVerificationFailed
236
- #if compiler(>=5.3) && $NonescapableTypes
236
+ #if compiler(>=5.3)
237
237
  public init?(rawValue: Swift.String)
238
238
  #endif
239
239
  public typealias RawValue = Swift.String
@@ -243,14 +243,14 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
243
243
  }
244
244
  public protocol AuthV5Callback : AnyObject {
245
245
  func onOtpRequired()
246
- #if compiler(>=5.3) && $NonescapableTypes
246
+ #if compiler(>=5.3)
247
247
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
248
248
  #endif
249
249
  func onError(errorCode: HawcxFramework.AuthV5ErrorCode, errorMessage: Swift.String)
250
- #if compiler(>=5.3) && $NonescapableTypes
250
+ #if compiler(>=5.3)
251
251
  func onAuthorizationCode(code: Swift.String, expiresIn: Swift.Int?)
252
252
  #endif
253
- #if compiler(>=5.3) && $NonescapableTypes
253
+ #if compiler(>=5.3)
254
254
  func onAdditionalVerificationRequired(sessionId: Swift.String, detail: Swift.String?)
255
255
  #endif
256
256
  }
@@ -260,7 +260,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
260
260
  }
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
- #if compiler(>=5.3) && $NonescapableTypes
263
+ #if compiler(>=5.3)
264
264
  public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
@@ -273,14 +273,14 @@ public class HawcxSDK {
273
273
  public func setAPNsDeviceToken(_ tokenData: Foundation.Data)
274
274
  public func userDidAuthenticate()
275
275
  public func handlePushNotification(userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool
276
- #if compiler(>=5.3) && $NonescapableTypes
276
+ #if compiler(>=5.3)
277
277
  public func approveLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
278
278
  #endif
279
- #if compiler(>=5.3) && $NonescapableTypes
279
+ #if compiler(>=5.3)
280
280
  public func declineLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
281
281
  #endif
282
282
  public func getLastLoggedInUser() -> Swift.String
283
- #if compiler(>=5.3) && $NonescapableTypes
283
+ #if compiler(>=5.3)
284
284
  @discardableResult
285
285
  public func storeBackendOAuthTokens(accessToken: Swift.String, refreshToken: Swift.String?, forUser userId: Swift.String) -> Swift.Bool
286
286
  #endif
@@ -9212,14 +9212,14 @@
9212
9212
  {
9213
9213
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV5.swift",
9214
9214
  "kind": "BooleanLiteral",
9215
- "offset": 1596,
9215
+ "offset": 1661,
9216
9216
  "length": 5,
9217
9217
  "value": "false"
9218
9218
  },
9219
9219
  {
9220
9220
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV5.swift",
9221
9221
  "kind": "BooleanLiteral",
9222
- "offset": 1639,
9222
+ "offset": 1704,
9223
9223
  "length": 5,
9224
9224
  "value": "false"
9225
9225
  },
@@ -72,22 +72,22 @@ public struct SessionDetails : Swift.Codable {
72
72
  public let city: Swift.String?
73
73
  public let state: Swift.String?
74
74
  public let country: Swift.String?
75
- #if compiler(>=5.3) && $NonescapableTypes
75
+ #if compiler(>=5.3)
76
76
  public var derivedOsDetails: Swift.String? {
77
77
  get
78
78
  }
79
79
  #endif
80
- #if compiler(>=5.3) && $NonescapableTypes
80
+ #if compiler(>=5.3)
81
81
  public var derivedBrowserWithVersion: Swift.String? {
82
82
  get
83
83
  }
84
84
  #endif
85
- #if compiler(>=5.3) && $NonescapableTypes
85
+ #if compiler(>=5.3)
86
86
  public var derivedDeviceType: Swift.String? {
87
87
  get
88
88
  }
89
89
  #endif
90
- #if compiler(>=5.3) && $NonescapableTypes
90
+ #if compiler(>=5.3)
91
91
  public var derivedLocation: Swift.String? {
92
92
  get
93
93
  }
@@ -103,32 +103,32 @@ public struct Device : Swift.Codable, Swift.Identifiable, Swift.Hashable {
103
103
  public let model: Swift.String?
104
104
  public let osVersion: Swift.String?
105
105
  public let loginTime: Swift.String?
106
- #if compiler(>=5.3) && $NonescapableTypes
106
+ #if compiler(>=5.3)
107
107
  public var osDetails: Swift.String? {
108
108
  get
109
109
  }
110
110
  #endif
111
- #if compiler(>=5.3) && $NonescapableTypes
111
+ #if compiler(>=5.3)
112
112
  public var browserWithVersion: Swift.String? {
113
113
  get
114
114
  }
115
115
  #endif
116
- #if compiler(>=5.3) && $NonescapableTypes
116
+ #if compiler(>=5.3)
117
117
  public var deviceType: Swift.String? {
118
118
  get
119
119
  }
120
120
  #endif
121
- #if compiler(>=5.3) && $NonescapableTypes
121
+ #if compiler(>=5.3)
122
122
  public var sessionDetails: [HawcxFramework.Session]? {
123
123
  get
124
124
  }
125
125
  #endif
126
126
  public static func == (lhs: HawcxFramework.Device, rhs: HawcxFramework.Device) -> Swift.Bool
127
127
  public func hash(into hasher: inout Swift.Hasher)
128
- #if compiler(>=5.3) && $NonescapableTypes
128
+ #if compiler(>=5.3)
129
129
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, platform: Swift.String? = nil, browserName: Swift.String? = nil, model: Swift.String? = nil, osVersion: Swift.String? = nil, loginTime: Swift.String? = nil)
130
130
  #endif
131
- #if compiler(>=5.3) && $NonescapableTypes
131
+ #if compiler(>=5.3)
132
132
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, osDetails: Swift.String?, browserWithVersion: Swift.String?, deviceType: Swift.String?, sessionDetails: [HawcxFramework.Session]?)
133
133
  #endif
134
134
  public typealias ID = Foundation.UUID
@@ -189,7 +189,7 @@ public enum AuthV4ErrorCode : Swift.String, Swift.Error {
189
189
  case oauthExchangeFailed
190
190
  case oauthTokenVerificationFailed
191
191
  case fingerprintError
192
- #if compiler(>=5.3) && $NonescapableTypes
192
+ #if compiler(>=5.3)
193
193
  public init?(rawValue: Swift.String)
194
194
  #endif
195
195
  public typealias RawValue = Swift.String
@@ -202,7 +202,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
202
202
  case invalidPin
203
203
  case failedApprove
204
204
  case networkError
205
- #if compiler(>=5.3) && $NonescapableTypes
205
+ #if compiler(>=5.3)
206
206
  public init?(rawValue: Swift.String)
207
207
  #endif
208
208
  public typealias RawValue = Swift.String
@@ -212,7 +212,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
212
212
  }
213
213
  public protocol AuthV4Callback : AnyObject {
214
214
  func onOtpRequired()
215
- #if compiler(>=5.3) && $NonescapableTypes
215
+ #if compiler(>=5.3)
216
216
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
217
217
  #endif
218
218
  func onError(errorCode: HawcxFramework.AuthV4ErrorCode, errorMessage: Swift.String)
@@ -233,7 +233,7 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
233
233
  case oauthConfigurationMissing
234
234
  case oauthExchangeFailed
235
235
  case oauthTokenVerificationFailed
236
- #if compiler(>=5.3) && $NonescapableTypes
236
+ #if compiler(>=5.3)
237
237
  public init?(rawValue: Swift.String)
238
238
  #endif
239
239
  public typealias RawValue = Swift.String
@@ -243,14 +243,14 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
243
243
  }
244
244
  public protocol AuthV5Callback : AnyObject {
245
245
  func onOtpRequired()
246
- #if compiler(>=5.3) && $NonescapableTypes
246
+ #if compiler(>=5.3)
247
247
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
248
248
  #endif
249
249
  func onError(errorCode: HawcxFramework.AuthV5ErrorCode, errorMessage: Swift.String)
250
- #if compiler(>=5.3) && $NonescapableTypes
250
+ #if compiler(>=5.3)
251
251
  func onAuthorizationCode(code: Swift.String, expiresIn: Swift.Int?)
252
252
  #endif
253
- #if compiler(>=5.3) && $NonescapableTypes
253
+ #if compiler(>=5.3)
254
254
  func onAdditionalVerificationRequired(sessionId: Swift.String, detail: Swift.String?)
255
255
  #endif
256
256
  }
@@ -260,7 +260,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
260
260
  }
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
- #if compiler(>=5.3) && $NonescapableTypes
263
+ #if compiler(>=5.3)
264
264
  public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
@@ -273,14 +273,14 @@ public class HawcxSDK {
273
273
  public func setAPNsDeviceToken(_ tokenData: Foundation.Data)
274
274
  public func userDidAuthenticate()
275
275
  public func handlePushNotification(userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool
276
- #if compiler(>=5.3) && $NonescapableTypes
276
+ #if compiler(>=5.3)
277
277
  public func approveLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
278
278
  #endif
279
- #if compiler(>=5.3) && $NonescapableTypes
279
+ #if compiler(>=5.3)
280
280
  public func declineLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
281
281
  #endif
282
282
  public func getLastLoggedInUser() -> Swift.String
283
- #if compiler(>=5.3) && $NonescapableTypes
283
+ #if compiler(>=5.3)
284
284
  @discardableResult
285
285
  public func storeBackendOAuthTokens(accessToken: Swift.String, refreshToken: Swift.String?, forUser userId: Swift.String) -> Swift.Bool
286
286
  #endif
@@ -72,22 +72,22 @@ public struct SessionDetails : Swift.Codable {
72
72
  public let city: Swift.String?
73
73
  public let state: Swift.String?
74
74
  public let country: Swift.String?
75
- #if compiler(>=5.3) && $NonescapableTypes
75
+ #if compiler(>=5.3)
76
76
  public var derivedOsDetails: Swift.String? {
77
77
  get
78
78
  }
79
79
  #endif
80
- #if compiler(>=5.3) && $NonescapableTypes
80
+ #if compiler(>=5.3)
81
81
  public var derivedBrowserWithVersion: Swift.String? {
82
82
  get
83
83
  }
84
84
  #endif
85
- #if compiler(>=5.3) && $NonescapableTypes
85
+ #if compiler(>=5.3)
86
86
  public var derivedDeviceType: Swift.String? {
87
87
  get
88
88
  }
89
89
  #endif
90
- #if compiler(>=5.3) && $NonescapableTypes
90
+ #if compiler(>=5.3)
91
91
  public var derivedLocation: Swift.String? {
92
92
  get
93
93
  }
@@ -103,32 +103,32 @@ public struct Device : Swift.Codable, Swift.Identifiable, Swift.Hashable {
103
103
  public let model: Swift.String?
104
104
  public let osVersion: Swift.String?
105
105
  public let loginTime: Swift.String?
106
- #if compiler(>=5.3) && $NonescapableTypes
106
+ #if compiler(>=5.3)
107
107
  public var osDetails: Swift.String? {
108
108
  get
109
109
  }
110
110
  #endif
111
- #if compiler(>=5.3) && $NonescapableTypes
111
+ #if compiler(>=5.3)
112
112
  public var browserWithVersion: Swift.String? {
113
113
  get
114
114
  }
115
115
  #endif
116
- #if compiler(>=5.3) && $NonescapableTypes
116
+ #if compiler(>=5.3)
117
117
  public var deviceType: Swift.String? {
118
118
  get
119
119
  }
120
120
  #endif
121
- #if compiler(>=5.3) && $NonescapableTypes
121
+ #if compiler(>=5.3)
122
122
  public var sessionDetails: [HawcxFramework.Session]? {
123
123
  get
124
124
  }
125
125
  #endif
126
126
  public static func == (lhs: HawcxFramework.Device, rhs: HawcxFramework.Device) -> Swift.Bool
127
127
  public func hash(into hasher: inout Swift.Hasher)
128
- #if compiler(>=5.3) && $NonescapableTypes
128
+ #if compiler(>=5.3)
129
129
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, platform: Swift.String? = nil, browserName: Swift.String? = nil, model: Swift.String? = nil, osVersion: Swift.String? = nil, loginTime: Swift.String? = nil)
130
130
  #endif
131
- #if compiler(>=5.3) && $NonescapableTypes
131
+ #if compiler(>=5.3)
132
132
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, osDetails: Swift.String?, browserWithVersion: Swift.String?, deviceType: Swift.String?, sessionDetails: [HawcxFramework.Session]?)
133
133
  #endif
134
134
  public typealias ID = Foundation.UUID
@@ -189,7 +189,7 @@ public enum AuthV4ErrorCode : Swift.String, Swift.Error {
189
189
  case oauthExchangeFailed
190
190
  case oauthTokenVerificationFailed
191
191
  case fingerprintError
192
- #if compiler(>=5.3) && $NonescapableTypes
192
+ #if compiler(>=5.3)
193
193
  public init?(rawValue: Swift.String)
194
194
  #endif
195
195
  public typealias RawValue = Swift.String
@@ -202,7 +202,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
202
202
  case invalidPin
203
203
  case failedApprove
204
204
  case networkError
205
- #if compiler(>=5.3) && $NonescapableTypes
205
+ #if compiler(>=5.3)
206
206
  public init?(rawValue: Swift.String)
207
207
  #endif
208
208
  public typealias RawValue = Swift.String
@@ -212,7 +212,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
212
212
  }
213
213
  public protocol AuthV4Callback : AnyObject {
214
214
  func onOtpRequired()
215
- #if compiler(>=5.3) && $NonescapableTypes
215
+ #if compiler(>=5.3)
216
216
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
217
217
  #endif
218
218
  func onError(errorCode: HawcxFramework.AuthV4ErrorCode, errorMessage: Swift.String)
@@ -233,7 +233,7 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
233
233
  case oauthConfigurationMissing
234
234
  case oauthExchangeFailed
235
235
  case oauthTokenVerificationFailed
236
- #if compiler(>=5.3) && $NonescapableTypes
236
+ #if compiler(>=5.3)
237
237
  public init?(rawValue: Swift.String)
238
238
  #endif
239
239
  public typealias RawValue = Swift.String
@@ -243,14 +243,14 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
243
243
  }
244
244
  public protocol AuthV5Callback : AnyObject {
245
245
  func onOtpRequired()
246
- #if compiler(>=5.3) && $NonescapableTypes
246
+ #if compiler(>=5.3)
247
247
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
248
248
  #endif
249
249
  func onError(errorCode: HawcxFramework.AuthV5ErrorCode, errorMessage: Swift.String)
250
- #if compiler(>=5.3) && $NonescapableTypes
250
+ #if compiler(>=5.3)
251
251
  func onAuthorizationCode(code: Swift.String, expiresIn: Swift.Int?)
252
252
  #endif
253
- #if compiler(>=5.3) && $NonescapableTypes
253
+ #if compiler(>=5.3)
254
254
  func onAdditionalVerificationRequired(sessionId: Swift.String, detail: Swift.String?)
255
255
  #endif
256
256
  }
@@ -260,7 +260,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
260
260
  }
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
- #if compiler(>=5.3) && $NonescapableTypes
263
+ #if compiler(>=5.3)
264
264
  public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
@@ -273,14 +273,14 @@ public class HawcxSDK {
273
273
  public func setAPNsDeviceToken(_ tokenData: Foundation.Data)
274
274
  public func userDidAuthenticate()
275
275
  public func handlePushNotification(userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool
276
- #if compiler(>=5.3) && $NonescapableTypes
276
+ #if compiler(>=5.3)
277
277
  public func approveLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
278
278
  #endif
279
- #if compiler(>=5.3) && $NonescapableTypes
279
+ #if compiler(>=5.3)
280
280
  public func declineLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
281
281
  #endif
282
282
  public func getLastLoggedInUser() -> Swift.String
283
- #if compiler(>=5.3) && $NonescapableTypes
283
+ #if compiler(>=5.3)
284
284
  @discardableResult
285
285
  public func storeBackendOAuthTokens(accessToken: Swift.String, refreshToken: Swift.String?, forUser userId: Swift.String) -> Swift.Bool
286
286
  #endif
@@ -9212,14 +9212,14 @@
9212
9212
  {
9213
9213
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV5.swift",
9214
9214
  "kind": "BooleanLiteral",
9215
- "offset": 1596,
9215
+ "offset": 1661,
9216
9216
  "length": 5,
9217
9217
  "value": "false"
9218
9218
  },
9219
9219
  {
9220
9220
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV5.swift",
9221
9221
  "kind": "BooleanLiteral",
9222
- "offset": 1639,
9222
+ "offset": 1704,
9223
9223
  "length": 5,
9224
9224
  "value": "false"
9225
9225
  },
@@ -72,22 +72,22 @@ public struct SessionDetails : Swift.Codable {
72
72
  public let city: Swift.String?
73
73
  public let state: Swift.String?
74
74
  public let country: Swift.String?
75
- #if compiler(>=5.3) && $NonescapableTypes
75
+ #if compiler(>=5.3)
76
76
  public var derivedOsDetails: Swift.String? {
77
77
  get
78
78
  }
79
79
  #endif
80
- #if compiler(>=5.3) && $NonescapableTypes
80
+ #if compiler(>=5.3)
81
81
  public var derivedBrowserWithVersion: Swift.String? {
82
82
  get
83
83
  }
84
84
  #endif
85
- #if compiler(>=5.3) && $NonescapableTypes
85
+ #if compiler(>=5.3)
86
86
  public var derivedDeviceType: Swift.String? {
87
87
  get
88
88
  }
89
89
  #endif
90
- #if compiler(>=5.3) && $NonescapableTypes
90
+ #if compiler(>=5.3)
91
91
  public var derivedLocation: Swift.String? {
92
92
  get
93
93
  }
@@ -103,32 +103,32 @@ public struct Device : Swift.Codable, Swift.Identifiable, Swift.Hashable {
103
103
  public let model: Swift.String?
104
104
  public let osVersion: Swift.String?
105
105
  public let loginTime: Swift.String?
106
- #if compiler(>=5.3) && $NonescapableTypes
106
+ #if compiler(>=5.3)
107
107
  public var osDetails: Swift.String? {
108
108
  get
109
109
  }
110
110
  #endif
111
- #if compiler(>=5.3) && $NonescapableTypes
111
+ #if compiler(>=5.3)
112
112
  public var browserWithVersion: Swift.String? {
113
113
  get
114
114
  }
115
115
  #endif
116
- #if compiler(>=5.3) && $NonescapableTypes
116
+ #if compiler(>=5.3)
117
117
  public var deviceType: Swift.String? {
118
118
  get
119
119
  }
120
120
  #endif
121
- #if compiler(>=5.3) && $NonescapableTypes
121
+ #if compiler(>=5.3)
122
122
  public var sessionDetails: [HawcxFramework.Session]? {
123
123
  get
124
124
  }
125
125
  #endif
126
126
  public static func == (lhs: HawcxFramework.Device, rhs: HawcxFramework.Device) -> Swift.Bool
127
127
  public func hash(into hasher: inout Swift.Hasher)
128
- #if compiler(>=5.3) && $NonescapableTypes
128
+ #if compiler(>=5.3)
129
129
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, platform: Swift.String? = nil, browserName: Swift.String? = nil, model: Swift.String? = nil, osVersion: Swift.String? = nil, loginTime: Swift.String? = nil)
130
130
  #endif
131
- #if compiler(>=5.3) && $NonescapableTypes
131
+ #if compiler(>=5.3)
132
132
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, osDetails: Swift.String?, browserWithVersion: Swift.String?, deviceType: Swift.String?, sessionDetails: [HawcxFramework.Session]?)
133
133
  #endif
134
134
  public typealias ID = Foundation.UUID
@@ -189,7 +189,7 @@ public enum AuthV4ErrorCode : Swift.String, Swift.Error {
189
189
  case oauthExchangeFailed
190
190
  case oauthTokenVerificationFailed
191
191
  case fingerprintError
192
- #if compiler(>=5.3) && $NonescapableTypes
192
+ #if compiler(>=5.3)
193
193
  public init?(rawValue: Swift.String)
194
194
  #endif
195
195
  public typealias RawValue = Swift.String
@@ -202,7 +202,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
202
202
  case invalidPin
203
203
  case failedApprove
204
204
  case networkError
205
- #if compiler(>=5.3) && $NonescapableTypes
205
+ #if compiler(>=5.3)
206
206
  public init?(rawValue: Swift.String)
207
207
  #endif
208
208
  public typealias RawValue = Swift.String
@@ -212,7 +212,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
212
212
  }
213
213
  public protocol AuthV4Callback : AnyObject {
214
214
  func onOtpRequired()
215
- #if compiler(>=5.3) && $NonescapableTypes
215
+ #if compiler(>=5.3)
216
216
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
217
217
  #endif
218
218
  func onError(errorCode: HawcxFramework.AuthV4ErrorCode, errorMessage: Swift.String)
@@ -233,7 +233,7 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
233
233
  case oauthConfigurationMissing
234
234
  case oauthExchangeFailed
235
235
  case oauthTokenVerificationFailed
236
- #if compiler(>=5.3) && $NonescapableTypes
236
+ #if compiler(>=5.3)
237
237
  public init?(rawValue: Swift.String)
238
238
  #endif
239
239
  public typealias RawValue = Swift.String
@@ -243,14 +243,14 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
243
243
  }
244
244
  public protocol AuthV5Callback : AnyObject {
245
245
  func onOtpRequired()
246
- #if compiler(>=5.3) && $NonescapableTypes
246
+ #if compiler(>=5.3)
247
247
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
248
248
  #endif
249
249
  func onError(errorCode: HawcxFramework.AuthV5ErrorCode, errorMessage: Swift.String)
250
- #if compiler(>=5.3) && $NonescapableTypes
250
+ #if compiler(>=5.3)
251
251
  func onAuthorizationCode(code: Swift.String, expiresIn: Swift.Int?)
252
252
  #endif
253
- #if compiler(>=5.3) && $NonescapableTypes
253
+ #if compiler(>=5.3)
254
254
  func onAdditionalVerificationRequired(sessionId: Swift.String, detail: Swift.String?)
255
255
  #endif
256
256
  }
@@ -260,7 +260,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
260
260
  }
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
- #if compiler(>=5.3) && $NonescapableTypes
263
+ #if compiler(>=5.3)
264
264
  public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
@@ -273,14 +273,14 @@ public class HawcxSDK {
273
273
  public func setAPNsDeviceToken(_ tokenData: Foundation.Data)
274
274
  public func userDidAuthenticate()
275
275
  public func handlePushNotification(userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool
276
- #if compiler(>=5.3) && $NonescapableTypes
276
+ #if compiler(>=5.3)
277
277
  public func approveLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
278
278
  #endif
279
- #if compiler(>=5.3) && $NonescapableTypes
279
+ #if compiler(>=5.3)
280
280
  public func declineLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
281
281
  #endif
282
282
  public func getLastLoggedInUser() -> Swift.String
283
- #if compiler(>=5.3) && $NonescapableTypes
283
+ #if compiler(>=5.3)
284
284
  @discardableResult
285
285
  public func storeBackendOAuthTokens(accessToken: Swift.String, refreshToken: Swift.String?, forUser userId: Swift.String) -> Swift.Bool
286
286
  #endif
@@ -72,22 +72,22 @@ public struct SessionDetails : Swift.Codable {
72
72
  public let city: Swift.String?
73
73
  public let state: Swift.String?
74
74
  public let country: Swift.String?
75
- #if compiler(>=5.3) && $NonescapableTypes
75
+ #if compiler(>=5.3)
76
76
  public var derivedOsDetails: Swift.String? {
77
77
  get
78
78
  }
79
79
  #endif
80
- #if compiler(>=5.3) && $NonescapableTypes
80
+ #if compiler(>=5.3)
81
81
  public var derivedBrowserWithVersion: Swift.String? {
82
82
  get
83
83
  }
84
84
  #endif
85
- #if compiler(>=5.3) && $NonescapableTypes
85
+ #if compiler(>=5.3)
86
86
  public var derivedDeviceType: Swift.String? {
87
87
  get
88
88
  }
89
89
  #endif
90
- #if compiler(>=5.3) && $NonescapableTypes
90
+ #if compiler(>=5.3)
91
91
  public var derivedLocation: Swift.String? {
92
92
  get
93
93
  }
@@ -103,32 +103,32 @@ public struct Device : Swift.Codable, Swift.Identifiable, Swift.Hashable {
103
103
  public let model: Swift.String?
104
104
  public let osVersion: Swift.String?
105
105
  public let loginTime: Swift.String?
106
- #if compiler(>=5.3) && $NonescapableTypes
106
+ #if compiler(>=5.3)
107
107
  public var osDetails: Swift.String? {
108
108
  get
109
109
  }
110
110
  #endif
111
- #if compiler(>=5.3) && $NonescapableTypes
111
+ #if compiler(>=5.3)
112
112
  public var browserWithVersion: Swift.String? {
113
113
  get
114
114
  }
115
115
  #endif
116
- #if compiler(>=5.3) && $NonescapableTypes
116
+ #if compiler(>=5.3)
117
117
  public var deviceType: Swift.String? {
118
118
  get
119
119
  }
120
120
  #endif
121
- #if compiler(>=5.3) && $NonescapableTypes
121
+ #if compiler(>=5.3)
122
122
  public var sessionDetails: [HawcxFramework.Session]? {
123
123
  get
124
124
  }
125
125
  #endif
126
126
  public static func == (lhs: HawcxFramework.Device, rhs: HawcxFramework.Device) -> Swift.Bool
127
127
  public func hash(into hasher: inout Swift.Hasher)
128
- #if compiler(>=5.3) && $NonescapableTypes
128
+ #if compiler(>=5.3)
129
129
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, platform: Swift.String? = nil, browserName: Swift.String? = nil, model: Swift.String? = nil, osVersion: Swift.String? = nil, loginTime: Swift.String? = nil)
130
130
  #endif
131
- #if compiler(>=5.3) && $NonescapableTypes
131
+ #if compiler(>=5.3)
132
132
  public init(id: Foundation.UUID = UUID(), devId: Swift.String?, osDetails: Swift.String?, browserWithVersion: Swift.String?, deviceType: Swift.String?, sessionDetails: [HawcxFramework.Session]?)
133
133
  #endif
134
134
  public typealias ID = Foundation.UUID
@@ -189,7 +189,7 @@ public enum AuthV4ErrorCode : Swift.String, Swift.Error {
189
189
  case oauthExchangeFailed
190
190
  case oauthTokenVerificationFailed
191
191
  case fingerprintError
192
- #if compiler(>=5.3) && $NonescapableTypes
192
+ #if compiler(>=5.3)
193
193
  public init?(rawValue: Swift.String)
194
194
  #endif
195
195
  public typealias RawValue = Swift.String
@@ -202,7 +202,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
202
202
  case invalidPin
203
203
  case failedApprove
204
204
  case networkError
205
- #if compiler(>=5.3) && $NonescapableTypes
205
+ #if compiler(>=5.3)
206
206
  public init?(rawValue: Swift.String)
207
207
  #endif
208
208
  public typealias RawValue = Swift.String
@@ -212,7 +212,7 @@ public enum WebLoginErrorCode : Swift.String, Swift.Error {
212
212
  }
213
213
  public protocol AuthV4Callback : AnyObject {
214
214
  func onOtpRequired()
215
- #if compiler(>=5.3) && $NonescapableTypes
215
+ #if compiler(>=5.3)
216
216
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
217
217
  #endif
218
218
  func onError(errorCode: HawcxFramework.AuthV4ErrorCode, errorMessage: Swift.String)
@@ -233,7 +233,7 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
233
233
  case oauthConfigurationMissing
234
234
  case oauthExchangeFailed
235
235
  case oauthTokenVerificationFailed
236
- #if compiler(>=5.3) && $NonescapableTypes
236
+ #if compiler(>=5.3)
237
237
  public init?(rawValue: Swift.String)
238
238
  #endif
239
239
  public typealias RawValue = Swift.String
@@ -243,14 +243,14 @@ public enum AuthV5ErrorCode : Swift.String, Swift.Error {
243
243
  }
244
244
  public protocol AuthV5Callback : AnyObject {
245
245
  func onOtpRequired()
246
- #if compiler(>=5.3) && $NonescapableTypes
246
+ #if compiler(>=5.3)
247
247
  func onAuthSuccess(accessToken: Swift.String?, refreshToken: Swift.String?, isLoginFlow: Swift.Bool)
248
248
  #endif
249
249
  func onError(errorCode: HawcxFramework.AuthV5ErrorCode, errorMessage: Swift.String)
250
- #if compiler(>=5.3) && $NonescapableTypes
250
+ #if compiler(>=5.3)
251
251
  func onAuthorizationCode(code: Swift.String, expiresIn: Swift.Int?)
252
252
  #endif
253
- #if compiler(>=5.3) && $NonescapableTypes
253
+ #if compiler(>=5.3)
254
254
  func onAdditionalVerificationRequired(sessionId: Swift.String, detail: Swift.String?)
255
255
  #endif
256
256
  }
@@ -260,7 +260,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
260
260
  }
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
- #if compiler(>=5.3) && $NonescapableTypes
263
+ #if compiler(>=5.3)
264
264
  public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
@@ -273,14 +273,14 @@ public class HawcxSDK {
273
273
  public func setAPNsDeviceToken(_ tokenData: Foundation.Data)
274
274
  public func userDidAuthenticate()
275
275
  public func handlePushNotification(userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool
276
- #if compiler(>=5.3) && $NonescapableTypes
276
+ #if compiler(>=5.3)
277
277
  public func approveLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
278
278
  #endif
279
- #if compiler(>=5.3) && $NonescapableTypes
279
+ #if compiler(>=5.3)
280
280
  public func declineLoginRequest(requestId: Swift.String, completion: @escaping ((any Swift.Error)?) -> Swift.Void)
281
281
  #endif
282
282
  public func getLastLoggedInUser() -> Swift.String
283
- #if compiler(>=5.3) && $NonescapableTypes
283
+ #if compiler(>=5.3)
284
284
  @discardableResult
285
285
  public func storeBackendOAuthTokens(accessToken: Swift.String, refreshToken: Swift.String?, forUser userId: Swift.String) -> Swift.Bool
286
286
  #endif
@@ -14,7 +14,7 @@
14
14
  </data>
15
15
  <key>Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
16
16
  <data>
17
- kipeaVQqudsiCalUjrsBKtrFgGU=
17
+ EdMOEv8eqEcj9hWsF0nXj3y5a1w=
18
18
  </data>
19
19
  <key>Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
20
20
  <data>
@@ -30,11 +30,11 @@
30
30
  </data>
31
31
  <key>Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
32
32
  <data>
33
- v8spgCO5RCScNkLyrROujHaQ3ZY=
33
+ t3Dp5ylLkkjguIlbmlyKKXGfaUc=
34
34
  </data>
35
35
  <key>Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
36
36
  <data>
37
- kipeaVQqudsiCalUjrsBKtrFgGU=
37
+ EdMOEv8eqEcj9hWsF0nXj3y5a1w=
38
38
  </data>
39
39
  <key>Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
40
40
  <data>
@@ -50,7 +50,7 @@
50
50
  </data>
51
51
  <key>Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
52
52
  <data>
53
- B5CYP1lvwoBP/QhlrEtb15Zqnlg=
53
+ iHRKUnXkV2F/cMn7tOFUYMCBg1o=
54
54
  </data>
55
55
  <key>Modules/module.modulemap</key>
56
56
  <data>
@@ -70,7 +70,7 @@
70
70
  <dict>
71
71
  <key>hash2</key>
72
72
  <data>
73
- FgoPy0sTYahSuyhwF/ahgkEPk+YbYJoiiLlqCOkeuyE=
73
+ 6rSkV3c50B3C+zFRqTOWOX5WUtVUPvDpDH40gx4ZKz0=
74
74
  </data>
75
75
  </dict>
76
76
  <key>Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
@@ -98,14 +98,14 @@
98
98
  <dict>
99
99
  <key>hash2</key>
100
100
  <data>
101
- Adr3+OhrQwksqJjW0mqkN+gkEpJumRTpivDzur2ayHw=
101
+ gRZxF26UbpBfqWSo0KL4W5E6hVfl+UEnrYYd+T2vlDw=
102
102
  </data>
103
103
  </dict>
104
104
  <key>Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
105
105
  <dict>
106
106
  <key>hash2</key>
107
107
  <data>
108
- FgoPy0sTYahSuyhwF/ahgkEPk+YbYJoiiLlqCOkeuyE=
108
+ 6rSkV3c50B3C+zFRqTOWOX5WUtVUPvDpDH40gx4ZKz0=
109
109
  </data>
110
110
  </dict>
111
111
  <key>Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
@@ -133,7 +133,7 @@
133
133
  <dict>
134
134
  <key>hash2</key>
135
135
  <data>
136
- yj+CbdOVcCuCjCr2YKuJ50nTQkjPuO38POrkoJOaIiI=
136
+ CGtJHlOOo7IycrcBQk5d0Owq69q93BiBe95oXK1iY2c=
137
137
  </data>
138
138
  </dict>
139
139
  <key>Modules/module.modulemap</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawcx/react-native-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "React Native SDK that wraps the Hawcx V5 iOS framework for secure mobile authentication.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
Binary file