From c204d34bf47f61a7be7b303c6068c38bd97cbe90 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Sat, 13 Nov 2021 16:44:51 -0800 Subject: [PATCH] Fixing token revocatiopn/ --- src/AuthService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AuthService.cpp b/src/AuthService.cpp index c19ade1..16e6a8c 100644 --- a/src/AuthService.cpp +++ b/src/AuthService.cpp @@ -72,11 +72,11 @@ namespace OpenWifi { return false; auto Client = UserCache_.get(CallToken); if( Client.isNull() ) { - std::cout << "Fetching token from disk and updating cache: " << __LINE__<< std::endl; + std::cout << "Fetching token from disk and updating cache: " << CallToken << " >" <<__LINE__<< std::endl; if(StorageService()->GetToken(CallToken,UInfo)) { Expired = (Client->webtoken.created_ + Client->webtoken.expires_in_) < time(nullptr); if(StorageService()->GetUserById(UInfo.userinfo.Id,UInfo.userinfo)) { - std::cout << "Fetching token from disk and updating cache: " << __LINE__<< std::endl; + std::cout << "Fetching token from disk and updating cache: " << CallToken << " >" <<__LINE__<< std::endl; UserCache_.update(UInfo.webtoken.access_token_, UInfo); SessionToken = CallToken; return true;