| 335 | } |
| 336 | |
| 337 | std::string OAuthService::GetAccessToken() const |
| 338 | { |
| 339 | std::lock_guard<std::recursive_mutex> lock(mMutex); |
| 340 | |
| 341 | if (Clock::now() < mTokenExpirationTime) |
| 342 | return mAccessToken; |
| 343 | |
| 344 | return {}; |
| 345 | } |
| 346 | |
| 347 | std::string OAuthService::MakeOAuthRequestURL(std::string_view authClientId) |
| 348 | { |
no outgoing calls
no test coverage detected