add library support to cancel pending authentication request