Skip to content

Commit

Permalink
Fix incorrect name of otp in WMTProximityCheckData
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopsaheysa committed Nov 2, 2023
1 parent f25cf71 commit 5a63912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WMTAuthorizationData: Codable {
}

self.proximityCheck = WMTProximityCheckData(
totp: proximityCheck.totp,
otp: proximityCheck.totp,
type: proximityCheck.type,
timestampRequested: proximityCheck.timestampRequested,
timestampSigned: timestampSigned
Expand All @@ -56,7 +56,7 @@ class WMTAuthorizationData: Codable {
struct WMTProximityCheckData: Codable {

/// Tha actual otp code
let totp: String
let otp: String

/// Type of the Proximity check
let type: WMTProximityCheckType
Expand Down
2 changes: 1 addition & 1 deletion WultraMobileTokenSDKTests/NetworkingObjectsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class NetworkingObjectsTests: XCTestCase {
XCTAssertEqual(request.requestObject?.data, "A2")
XCTAssertEqual(request.requestObject?.id, "47825519-35b8-469d-ad76-e42f85b9a31d")
XCTAssertEqual(proximityCheck?.type, .qrCode)
XCTAssertEqual(proximityCheck?.totp, "12345678")
XCTAssertEqual(proximityCheck?.otp, "12345678")
}


Expand Down

0 comments on commit 5a63912

Please sign in to comment.