Skip to content

Commit 568da1d

Browse files
Return action code and idempotency key (#69)
* Return actionCode and idempotencyKey correctly * Return actionCode and idempotencyKey for iOS
1 parent e2ff7b4 commit 568da1d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

android/src/main/java/com/authsignal/react/AuthsignalQRCodeModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ class AuthsignalQRCodeModule(private val reactContext: ReactApplicationContext)
121121
map.putBoolean("success", data.success)
122122
data.userAgent?.let { map.putString("userAgent", it) }
123123
data.ipAddress?.let { map.putString("ipAddress", it) }
124+
data.actionCode?.let { map.putString("actionCode", it) }
125+
data.idempotencyKey?.let { map.putString("idempotencyKey", it) }
124126
promise.resolve(map)
125127
}
126128
}

ios/AuthsignalQRModule.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ class AuthsignalQRCodeModule: NSObject {
132132
"success": data.success,
133133
"userAgent": data.userAgent,
134134
"ipAddress": data.ipAddress,
135+
"actionCode": data.actionCode,
136+
"idempotencyKey": data.idempotencyKey,
135137
]
136138

137139
resolve(result)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-authsignal",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "The official Authsignal React Native library.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)