export function resolveGoogleOAuthCredentials(config) {
    const configuredClientId = config?.googleClientId?.trim();
    const configuredClientSecret = config?.googleClientSecret?.trim();
    if (configuredClientId && configuredClientSecret) {
        return {
            clientId: configuredClientId,
            clientSecret: configuredClientSecret,
            usesDefaultApp: false,
        };
    }
    if (configuredClientId || configuredClientSecret) {
        throw new Error("Google OAuth config is incomplete. Set both googleClientId and googleClientSecret.");
    }
    throw new Error("Google OAuth is not configured. Provide googleClientId and googleClientSecret in the active profile.");
}
//# sourceMappingURL=oauth-credentials.js.map