auth /api/token
This commit is contained in:
1 parent
987215cd86
commit
2675bb15e3
5 files changed
+64
-9
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#ifndef AUTH_HPP
|
||||
#define AUTH_HPP
|
||||
|
||||
#include <httplib.h>
|
||||
#include <jwt-cpp/jwt.h>
|
||||
#include <json.hpp>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include "../includes.hpp"
|
||||
#include <sstream>
|
||||
|
||||
void auth(const httplib::Request& request, httplib::Response& response);
|
||||
bool verify_auth(const std::string token);
|
||||
|
||||
#endif // AUTH_HPP
|
||||
Reference in new issue
Block a user