diff options
Diffstat (limited to 'battleNetApi/src/hearthstoneTokenBuilder.cpp')
| -rw-r--r-- | battleNetApi/src/hearthstoneTokenBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/battleNetApi/src/hearthstoneTokenBuilder.cpp b/battleNetApi/src/hearthstoneTokenBuilder.cpp index 96e3aa8..6307ba5 100644 --- a/battleNetApi/src/hearthstoneTokenBuilder.cpp +++ b/battleNetApi/src/hearthstoneTokenBuilder.cpp @@ -61,7 +61,7 @@ bool HearthstoneTokenBuilder::isTokenValid(const json &iTokenJson) const { not iTokenJson["Token"].contains("Content")) { return false; } - if (iTokenJson["Token"]["Content"].dump().length() < kTOKEN_CONTENT_MIN_LENGTH) { + if (iTokenJson["Token"]["Content"].get<std::string>().length() < kTOKEN_CONTENT_MIN_LENGTH) { return false; } if (_allowExpiredToken) { |
