extractAuth = function (entity) {
        var auth;

        return (entity && (auth = entity.auth) && RequestAuth.isValidType(auth.type)) ? auth : undefined;
    }
Extracts `auth` from an entity. Checks if `auth` is present and it is not falsy type.

@private

@param {Object} [entity] -