[fix] oauth:  Improved error handling