18 lines
474 B
C++
18 lines
474 B
C++
#pragma once
|
|
#include "lib/api/services/AuthService.pb.h"
|
|
#include "lib/api/services/AdminService.client.pb.h"
|
|
#include <string>
|
|
|
|
namespace bts {
|
|
namespace api {
|
|
namespace auth {
|
|
|
|
AuthToken generate_token(const admin::BTSUser&, std::string* msg = nullptr);
|
|
AuthToken generate_wheel_token();
|
|
bool decode_token(const api::AuthToken& token, user::TokenPayload* payload);
|
|
bool requires_auth_session(const admin::BTSUser& user);
|
|
void clear_all_sessions();
|
|
|
|
}}}
|
|
|