From a3b225f2b08172ab3639a4614033396dcae5d764 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Sat, 1 Nov 2025 22:16:38 +0100 Subject: stop adding timestamp if token is empty --- subprojects/battleNetApi/include/token.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subprojects/battleNetApi/include') diff --git a/subprojects/battleNetApi/include/token.hpp b/subprojects/battleNetApi/include/token.hpp index e135d3f..0b66f53 100644 --- a/subprojects/battleNetApi/include/token.hpp +++ b/subprojects/battleNetApi/include/token.hpp @@ -14,7 +14,7 @@ class Token { void refreshToken() const; void writeNewTokenToFile() const; void writeTokenToFile(const std::string &iToken) const; - std::string getValidTokenWithApi() const; + std::string getValidTokenWithApi(const std::string &iUser, const std::string &iPassword) const; std::chrono::seconds getCurrentTime() const; std::string extractFirstMatchRegex(const std::string &t_str, const std::string &t_regex) const; static size_t curlCallbackStringOutput(void *t_contents, size_t t_size, size_t t_nmemb, std::string *t_s); -- cgit v1.2.3