diff --git a/CHANGES.md b/CHANGES.md index 56f1566..36f383c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,12 @@ # Release History +## 2.2.1 +* Fix base url + ## 2.2.0 * Add support of Client Credentials Grant * Fix issue with "debug" config option +* BREAKING CHANGE: NON-WORKING VERSION ## 2.1.3 * Add GraphQL support diff --git a/lib/config.js b/lib/config.js index b84b8ed..11a827e 100644 --- a/lib/config.js +++ b/lib/config.js @@ -31,7 +31,7 @@ function Config(options) { this.debug = options.debug || false; this.authorizePath = '/ab/account-security/oauth2/authorize'; this.tokenPath = '/api/v3/oauth2/token'; - this.tokenHost = 'https://stage.upwork.com'; + this.tokenHost = 'https://www.upwork.com'; this.baseUrl = this.tokenHost + '/api/'; this.gqlUrl = 'https://api.upwork.com/graphql'; diff --git a/package.json b/package.json index 807938e..88a1f74 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@upwork/node-upwork-oauth2", "description": "Node.JS bindings for Upwork API (OAuth2)", - "version": "2.2.0", + "version": "2.2.1", "author": { "name": "Maksym Novozhylov", "email": "mnovozhilov@upwork.com"