1
0
Fork 0
forked from lthn/blockchain

fix of JWT auth wrong expiration units

This commit is contained in:
cryptozoidberg 2025-02-26 14:56:47 +04:00
parent ca46fca7b1
commit bb92e52ae2
No known key found for this signature in database
GPG key ID: 2E10CC61CAC8F36D

View file

@ -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"