Add wrapper function for retrieving oauth info

Reduces duplication of EOAUTH error handling.