aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/clients/httpclientcommon.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-03-18 22:28:14 +0100
committerGitHub Enterprise <[email protected]>2026-03-18 22:28:14 +0100
commit59bc08385515997a34fe2b4b3cbbfd03dd9a7c5b (patch)
tree0a65fca5537909f41b5f8b0d87daa7dbcd967677 /src/zenhttp/clients/httpclientcommon.h
parentUpdate libcurl to 8.19.0 (#862) (diff)
downloadzen-59bc08385515997a34fe2b4b3cbbfd03dd9a7c5b.tar.xz
zen-59bc08385515997a34fe2b4b3cbbfd03dd9a7c5b.zip
improve auth token refresh (#863)
Authentication callbacks are not thread safe, ensured call sites does single threaded calls
Diffstat (limited to 'src/zenhttp/clients/httpclientcommon.h')
-rw-r--r--src/zenhttp/clients/httpclientcommon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhttp/clients/httpclientcommon.h b/src/zenhttp/clients/httpclientcommon.h
index e95e3a253..e8d969cc8 100644
--- a/src/zenhttp/clients/httpclientcommon.h
+++ b/src/zenhttp/clients/httpclientcommon.h
@@ -70,7 +70,7 @@ protected:
const HttpClientSettings m_ConnectionSettings;
std::function<bool()> m_CheckIfAbortFunction;
- const std::optional<HttpClientAccessToken> GetAccessToken();
+ std::optional<std::string> GetAccessToken();
RwLock m_AccessTokenLock;
HttpClientAccessToken m_CachedAccessToken;