Update OAuth handling functions