Left some TODO's. Next thing is to check if the token is valid

This commit is contained in:
kdeng00
2019-08-19 22:19:47 -04:00
parent 4072526d35
commit 3e94e0e22e
7 changed files with 59 additions and 27 deletions
+4
View File
@@ -1,9 +1,11 @@
#ifndef TOKEN_MANAGER_H_
#define TOKEN_MANAGER_H_
#include <string>
#include <string_view>
#include "models.h"
#include "types/scopes.h"
class token_manager
{
@@ -12,6 +14,8 @@ public:
loginResult retrieve_token();
loginResult retrieve_token(std::string_view);
bool is_token_valid(std::string&, Scope);
private:
auth_credentials parse_auth_credentials(std::string_view);
};