pair Suspend
Pairs the device with the PingOne server using the pairing key.
Sample usage:
lifecycleScope.launch {
try {
val pairingInfo = PingOne.pair(context, pairingKey)
if (pairingInfo != null) {
// Pairing completed successfully
// pairingInfo contains authentication methods status
}
} catch (e: PingOneSDKException) {
// Handle error
Log.e("PingOne", "Pairing failed: ${e.error.message}")
}
}
Return
PairingInfo if pairing completed successfully, null otherwise
Parameters
context
The context of the calling application.
pairing Key
String representing a pairing key.
Throws
if the operation fails