| 27 | static constexpr const char* CLIENT_SECRET = "v6V3fKV_zWU7iw1DrpO1rknX"; |
| 28 | |
| 29 | std::string GoogleDriveProvider::BuildRefreshBody(const std::string& refreshToken) const { |
| 30 | return "client_id=" + UrlEncode(CLIENT_ID) + |
| 31 | "&client_secret=" + UrlEncode(CLIENT_SECRET) + |
| 32 | "&refresh_token=" + UrlEncode(refreshToken) + |
| 33 | "&grant_type=refresh_token"; |
| 34 | } |
| 35 | |
| 36 | bool GoogleDriveProvider::IsRateLimited(int status, const std::string& body) const { |
| 37 | return status == 429 || (status == 403 && body.find("rateLimitExceeded") != std::string::npos); |
nothing calls this directly
no test coverage detected