Skip to content

Commit

Permalink
#202 ios accessToken replace with apiKey
Browse files Browse the repository at this point in the history
ios accessToken replace with apiKey in "DataSharing"
  • Loading branch information
lijogeorgep authored and josmilan committed Nov 15, 2023
1 parent c91e7de commit 1900114
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ import SwiftMessages
AriesMobileAgent.shared.showDataWalletScannerViewController()
case "DataSharing":
let arguments = call.arguments as? [String: Any]
let accessToken = arguments?["accessToken"] as? String
let apiKey = arguments?["apiKey"] as? String
let userId = arguments?["userId"] as? String
let dataAgreementID = arguments?["dataAgreementID"] as? String
let baseUrl = arguments?["baseUrl"] as? String
var data: String? = nil

PrivacyDashboard.configure(withApiKey: "", withUserId: "", withOrgId: "", withBaseUrl: String(baseUrl?.dropLast() ?? ""), accessToken: accessToken ?? "")
PrivacyDashboard.configure(withApiKey: apiKey ?? "", withUserId: userId ?? "", withOrgId: "", withBaseUrl: String(baseUrl ?? ""), accessToken: "")
PrivacyDashboard.updateDataAgreementStatus(dataAgreementId: dataAgreementID ?? "", status: true)
PrivacyDashboard.receiveDataBackFromPrivacyDashboard = { dataReceived in
let dict = dataReceived["consentRecord"] as? [String: Any]
Expand Down

0 comments on commit 1900114

Please sign in to comment.