Updated load function for oauth credentials