Added support for OAuth tokens.