From 2d67036e6eede970efb0db5f9793de95093599cd Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Sat, 1 Nov 2025 19:29:44 +0100 Subject: refactoring Token class --- subprojects/battleNetApi/include/token.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'subprojects/battleNetApi/include/token.hpp') diff --git a/subprojects/battleNetApi/include/token.hpp b/subprojects/battleNetApi/include/token.hpp index 9c1eb18..e135d3f 100644 --- a/subprojects/battleNetApi/include/token.hpp +++ b/subprojects/battleNetApi/include/token.hpp @@ -4,11 +4,13 @@ class Token { public: Token(const std::string &iTokenFilePath); - std::string getValidToken() const; + std::string toString() const; private: - std::string mFilePath; //!< Path to the token file + const std::string mFilePath; //!< Path to the token file + const std::string mToken; //!< Token value + std::string getValidToken() const; void refreshToken() const; void writeNewTokenToFile() const; void writeTokenToFile(const std::string &iToken) const; -- cgit v1.2.3