Part2: Add OAuth2 Support
indicate that the helper function is private