Skip to main content
Glama
verify-auth.ts1.06 kB
import { loadConfig } from "@/packages/configs/secrets-config/config"; export interface VerifyPlayStoreAuthResult { success: boolean; error?: string; data?: { client_email: string; project_id: string; }; } /** * Verify Google Play Store service account authentication configuration. * @returns Authentication verification result */ export function verifyPlayStoreAuth(): VerifyPlayStoreAuthResult { try { const cfg = loadConfig().playStore; if (!cfg) { return { success: false, error: "Play Store configuration not found in ~/.config/pabal-mcp/config.json file.", }; } const parsed = JSON.parse(cfg.serviceAccountJson); return { success: true, data: { client_email: parsed.client_email, project_id: parsed.project_id, }, }; } catch (error) { const message = error instanceof Error ? error.message : String(error); return { success: false, error: `Play Store authentication verification failed: ${message}`, }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quartz-labs-dev/pabal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server