Skip to main content

Associate profile

To associate new profiles you can either use a Deeplink or scan a QR Code.

Client requirements

Using link

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

trustfactorClient.associateApplicationProfile(using: .deeplink(url)) { result, correlationId in
switch result {
case .success(let associationResult):
// handle result

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

Using an association code


let code = "....."

trustfactorClient.associateApplicationProfile(using: .code(code)) { result, correlationId in
switch result {
case .success(let associationResult):
// value is a boolean we can ignore

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