onSuccess

inline fun <T : Any, E : Any> ClerkResult<T, E>.onSuccess(action: (value: T) -> Unit): ClerkResult<T, E>

Performs the given action on the encapsulated value if this instance represents success. Returns the original ClerkApiResult unchanged.