added editorconfig and formated code
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled

This commit is contained in:
wt committed 2025-02-13 19:35:42 +07:00
1 parent 77a483a38a
commit e5abe4bb02
23 files changed
+22332 -21478

No files matched your search

+4 -2
View File
@@ -5,10 +5,12 @@
#include <syslog.h>
// function for verify tokens
bool verify_auth(const std::string &token) {
bool verify_auth(const std::string& token)
{
try {
return JWT::verifyJWT(token, JWT_SECRET_KEY);
} catch (const std::system_error &e) {
}
catch (const std::system_error& e) {
std::cout << "Verification error: " << e.what() << std::endl;
syslog(LOG_ERR, "token verification error");
return false;