updateUserData

abstract suspend fun updateUserData(data: Map<String, Any>, options: ERROR CLASS: Symbol not found for Options?? = null): Result<UserData>

Updates the signed-in user's data via the Identify Public API, and caches the result the same way as getUserData. Unlike getUserData, this always makes a request rather than returning a cached userData.

Return

Result.success with the updated UserData on success, or Result.failure on failure. On failure, also notifies listeners via IdentifyKitListener.onCredentialsValidationFailed.

Parameters

data

Fields to change. The SDK does not inspect or type these fields, the caller supplies whatever their SSO provider expects.

options

Optional request configuration.