pass jwt_token_str and key by ref for performance

pull/3530/head
Isaac Connor 2022-07-14 09:46:24 -04:00
parent e38dd4649d
commit bc12205ec3
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
// returns username if valid, "" if not
#if HAVE_LIBJWT
std::pair <std::string, unsigned int> verifyToken(std::string jwt_token_str, std::string key) {
std::pair <std::string, unsigned int> verifyToken(const std::string &jwt_token_str, const std::string &key) {
std::string username = "";
unsigned int token_issued_at = 0;
int err = 0;