added syslog errors

This commit is contained in:
wt committed 2024-07-03 10:49:56 +07:00
1 parent b3736a5124
commit fb961af71c
9 files changed
+65

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
#include "auth.hpp"
#include <jwt-cpp/jwt.h>
#include "../includes.hpp"
#include <syslog.h>
// function for verify tokens
bool verify_auth(const std::string &token) {
@@ -17,6 +18,7 @@ bool verify_auth(const std::string &token) {
return true;
} catch (const std::system_error &e) {
std::cout << "Verification error: " << e.what() << std::endl;
syslog(LOG_ERR, "token verification error");
return false;
}
catch (...) {