processIdTokenSuspend

Processes ID Token retrieved from the PingOne server.

Sample usage:

lifecycleScope.launch {
    try {
        val pairingObject = PingOne.processIdToken(idToken)
        if (pairingObject != null) {
            // Further action is required, such as approving the pairing
            // Parse pairing object and request user approval if needed
        }
    } catch (e: PingOneSDKException) {
        // Handle error
        Log.e("PingOne", "Process ID token failed: ${e.error.message}")
    }
}

Return

PairingObject if further action is required (e.g., approving the pairing), null if already paired or no action needed

Parameters

idToken

String representing the token retrieved from the PingOne server.

Throws

if the operation fails