mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-06 07:30:09 +08:00
Added check for community error when getting webapi oauth token
This commit is contained in:
parent
2e02c14455
commit
f3ac556922
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user