trigger event when user authorized