refactor and review
This commit is contained in:
1 parent
721e616207
commit
29df9728e2
16 files changed
+351
-174
No files matched your search
+3
-7
@@ -2,16 +2,12 @@
|
||||
#define AUTH_HPP
|
||||
|
||||
#include <httplib.h>
|
||||
#include <jwt-cpp/jwt.h>
|
||||
#include <json.hpp>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include "../includes.hpp"
|
||||
#include <sstream>
|
||||
|
||||
// function for authorization users
|
||||
void auth(const httplib::Request& request, httplib::Response& response);
|
||||
void auth(const httplib::Request &request, httplib::Response &response);
|
||||
|
||||
// function for verify tokens
|
||||
bool verify_auth(const std::string token);
|
||||
bool verify_auth(const std::string &token);
|
||||
|
||||
#endif // AUTH_HPP
|
||||
Reference in new issue
Block a user