Pubstwo 889 Client side authentication functionality done

should this call deferred.reject()?