MCPcopy Create free account
hub / github.com/audacity/audacity / ValidateAuth

Method ValidateAuth

libraries/lib-cloud-audiocom/OAuthService.cpp:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111} // namespace
112
113void OAuthService::ValidateAuth(
114 std::function<void(std::string_view)> completedHandler, AudiocomTrace trace,
115 bool silent)
116{
117 if (HasAccessToken() || !HasRefreshToken())
118 {
119 if (completedHandler)
120 completedHandler(GetAccessToken());
121 return;
122 }
123
124 AuthoriseRefreshToken(
125 GetServiceConfig(), trace, std::move(completedHandler), silent);
126}
127
128bool OAuthService::HandleLinkURI(
129 std::string_view uri, AudiocomTrace trace,

Callers 5

UploadMethod · 0.80
PerformBlockingAuthFunction · 0.80
TaskExecutionHandlerMethod · 0.80
HandleCloudLoginMethod · 0.80
UpdateUserDataMethod · 0.80

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected