Skip to main content

Association details

You can retrieve Application and Profile details before proceeding to the association.

caution

Not all association codes are valid, in that case, a Error with domain profileAction(code: .invalidAssociationCode) is returned. The same association method can still be valid for the association method.

Client requirements

Using link

let url = URL(string: "https://....")

trustfactorClient.applicationProfileForAssociation(method: .deeplink(url)) { result, correlationId in
switch result {
case .success(let response):
// response type: TFApplicationProfiles

case .failure(let error):
// handle errors
}
}

Using an association code


let code = "....."

trustfactorClient.applicationProfileForAssociation(method: .code(code)) { result, correlationId in
switch result {
case .success(let response):
// response type: TFApplicationProfiles

case .failure(let error):
// handle errors
}
}