Skip to main content

Function: requestGoogleOAuthToken()

requestGoogleOAuthToken(input: RequestGoogleOAuthTokenInput): Promise<GoogleTokenResponse>

Defined in: electron/services/cloud/providers/googleDrive/googleDriveOAuthTokenRequest.ts:73

Performs a POST request to Google's OAuth token endpoint.

Parameters

input

RequestGoogleOAuthTokenInput

Returns

Promise<GoogleTokenResponse>

Remarks

Shared by the interactive auth flow (authorization_code + PKCE) and the background refresh flow. Centralizing this logic keeps request construction and error handling consistent (including secret redaction).