summaryrefslogtreecommitdiff
path: root/subprojects/battleNetApi/include/token.hpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2025-11-17 13:30:23 +0100
committerAotrix <[email protected]>2025-11-17 13:30:23 +0100
commit9dab564d3aaabda88efda5e3289392d0be716084 (patch)
tree4d2d0188119ba33f29c0dc6c362c26a47a9e637d /subprojects/battleNetApi/include/token.hpp
parentf78e3e1428f59fb96cb02cf6fbaad692a582f9d5 (diff)
changed subprojects to submodules
Diffstat (limited to 'subprojects/battleNetApi/include/token.hpp')
-rw-r--r--subprojects/battleNetApi/include/token.hpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/subprojects/battleNetApi/include/token.hpp b/subprojects/battleNetApi/include/token.hpp
deleted file mode 100644
index e2e3088..0000000
--- a/subprojects/battleNetApi/include/token.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <chrono>
-#include <string>
-
-class Token {
- public:
- Token(const std::string &iTokenFilePath, const std::string &iUsername, const std::string &iPassword);
- std::string toString() const;
-
- private:
- const std::string mFilePath; //!< Path to the token file
- const std::string mUsername; //!< Username for Battle.net API
- const std::string mPassword; //!< Password for Battle.net API
- const std::string mToken; //!< Token value
-
- std::string getValidToken() const;
- void refreshToken() const;
- void writeNewTokenToFile() const;
- void writeTokenToFile(const std::string &iToken) const;
- std::string getValidTokenWithApi() const;
- std::chrono::seconds getCurrentTime() const;
- std::string extractTokenWithRegex(const std::string &iText, const std::string &iRegex) const;
- static size_t curlCallbackStringOutput(void *iPtr, size_t iSize, size_t iNmemb, std::string *iUserData);
-
- friend class TokenTests;
-};