diff options
Diffstat (limited to 'battleNetApi/include/token.hpp')
| -rw-r--r-- | battleNetApi/include/token.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/battleNetApi/include/token.hpp b/battleNetApi/include/token.hpp index 1941ce5..7107eb0 100644 --- a/battleNetApi/include/token.hpp +++ b/battleNetApi/include/token.hpp @@ -5,7 +5,7 @@ class Token { public: Token(const std::string &iTokenFilePath); std::string text() const; - const bool hasTokenExpired() const; + const bool hasExpired() const; void updateToken(); private: @@ -21,7 +21,7 @@ class Token { * or if there is no token at all. */ std::string generateToken(); - void writeNewTokenToLocalFile(const std::pair<std::string, std::uint64_t> &iToken) const; + void writeTokenToLocalFile(const std::pair<std::string, std::uint64_t> &iToken) const; std::string getTokenFromLocalFile() const; std::pair<std::string, std::uint64_t> getTokenWithApi() const; std::chrono::seconds getCurrentTime() const; |
