@wireapp/api-client 23.3.0 → 23.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/oauth/OAuthAPI.js +1 -2
- package/package.json +2 -2
package/lib/oauth/OAuthAPI.js
CHANGED
|
@@ -53,7 +53,6 @@ class OAuthAPI {
|
|
|
53
53
|
* Create an OAuth authorization code.
|
|
54
54
|
*/
|
|
55
55
|
async postOAuthCode(oauthBody) {
|
|
56
|
-
var _a;
|
|
57
56
|
const config = {
|
|
58
57
|
data: oauthBody,
|
|
59
58
|
method: 'post',
|
|
@@ -61,7 +60,7 @@ class OAuthAPI {
|
|
|
61
60
|
};
|
|
62
61
|
try {
|
|
63
62
|
const response = await this.client.sendJSON(config);
|
|
64
|
-
return
|
|
63
|
+
return response.headers.location;
|
|
65
64
|
}
|
|
66
65
|
catch (error) {
|
|
67
66
|
throw error;
|
package/package.json
CHANGED