From f3ac5569228294235917f170d3eafb531ad4f8d4 Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Mon, 30 Nov 2015 19:40:10 -0500 Subject: [PATCH] Added check for community error when getting webapi oauth token --- components/webapi.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/webapi.js b/components/webapi.js index 8d19c46..c593cce 100644 --- a/components/webapi.js +++ b/components/webapi.js @@ -9,6 +9,10 @@ SteamCommunity.prototype.getWebApiOauthToken = function(callback) { return; } + if(self._checkCommunityError(body, callback)) { + return; + } + var match = body.match(/"([0-9a-f]{32})"/); if (!match) { callback(new Error("Malformed response"));