24 lines
406 B
C++
24 lines
406 B
C++
#ifndef TOKEN_MANAGER_H_
|
|
#define TOKEN_MANAGER_H_
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
#include "models.h"
|
|
#include "types/scopes.h"
|
|
|
|
class token_manager
|
|
{
|
|
public:
|
|
token_manager();
|
|
|
|
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);
|
|
};
|
|
|
|
#endif
|