Fixed the bug from the original implementation by instantiating the oauth property as an object