cross build

This commit is contained in:
wt committed 2024-12-02 18:58:29 +07:00
1 parent 760c3f8062
commit a0de61a6c0
17 files changed
+102 -79

No files matched your search

+4 -3
View File
@@ -1,12 +1,13 @@
#include "auth.hpp"
#include <auth/auth.hpp>
#include <json.hpp>
#include <includes.hpp>
#include <jwt.hpp>
#include "../includes.hpp"
#include <syslog.h>
// function for verify tokens
bool verify_auth(const std::string &token) {
try {
return JWT::verifyJWT(token, JWT_DEFAULT_SECRET);
return JWT::verifyJWT(token, JWT_SECRET_KEY);
} catch (const std::system_error &e) {
std::cout << "Verification error: " << e.what() << std::endl;
syslog(LOG_ERR, "token verification error");