update oauth flow events handling