From bb92e52ae2076e2bacf1f94e4bbdbc0a817df5ad Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Wed, 26 Feb 2025 14:56:47 +0400 Subject: [PATCH] fix of JWT auth wrong expiration units --- src/wallet/wallet_rpc_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 4e30d514..377d214e 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -23,7 +23,7 @@ DISABLE_VS_WARNINGS(4244) POP_VS_WARNINGS #include "crypto/bitcoin/sha256_helper.h" -#define JWT_TOKEN_EXPIRATION_MAXIMUM (60 * 60) +#define JWT_TOKEN_EXPIRATION_MAXIMUM (60 * 60 * 1000) #define JWT_TOKEN_CLAIM_NAME_BODY_HASH "body_hash" #define JWT_TOKEN_CLAIM_NAME_SALT "salt" #define JWT_TOKEN_CLAIM_NAME_EXPIRATION "exp"