Add support for OAuth authentication to the library