diff options
Diffstat (limited to 'subprojects/battleNetApi/include/token.hpp')
| -rw-r--r-- | subprojects/battleNetApi/include/token.hpp | 6 |
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; |
