update oauth flow events handling
Merge pull request #114 from box/s

update oauth flow events handling