16 lines
358 B
C++
16 lines
358 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&);
|
|
AuthToken generate_wheel_token();
|
|
bool decode_token(const std::string& token, user::TokenPayload* payload);
|
|
|
|
}}}
|
|
|