summaryrefslogtreecommitdiff
path: root/subprojects/battleNetApi/include/token.hpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2025-11-01 19:29:44 +0100
committerAotrix <[email protected]>2025-11-01 19:29:44 +0100
commit2d67036e6eede970efb0db5f9793de95093599cd (patch)
treee9a139d6435cc7eeece182307a72bee24c7f91d4 /subprojects/battleNetApi/include/token.hpp
parent3baa8fa322dbc8f2a2183e8ac027387c75eb9180 (diff)
refactoring Token class
Diffstat (limited to 'subprojects/battleNetApi/include/token.hpp')
-rw-r--r--subprojects/battleNetApi/include/token.hpp6
1 files changed, 4 insertions, 2 deletions
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;