updateUserData

open suspend override fun updateUserData(data: Map<String, Any>, options: Options?): Result<UserData>

Updates the user data associated with the current identity.

Always performs a network request, even if userData is already cached. On success, updates userData and returns it. On failure, notifies listeners via IdentifyKitListener.onCredentialsValidationFailed and returns a failed Result wrapping the exception; this call never throws.

Return

A Result wrapping the updated UserData on success, or the failure otherwise.

Parameters

data

The fields to update.

options

Optional request configuration. Defaults to the Core configuration.