update oauthflow events handling