getUserOrDefault

fun Session?.getUserOrDefault(userId: String): User

Similar to getUser, but fallback to a User without details if the User is not known by the SDK, or if Session is null.