getUserData
Fetches the user data associated with the current identity.
Returns the cached userData immediately if one is available, wrapped in Result.success. Otherwise, performs a network request against the identity service. 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 UserData on success, or the failure otherwise.
Parameters
options
Optional request configuration. Defaults to the Core configuration.