parseVertexSaJson (oauth/googleServiceAccount.ts)

OpenCursor · src/agent/oauth/googleServiceAccount.ts · typescript · MIT
auth

Copyright (c) 2026 Pawan Osman <https://github.com/PawanOsman> This file is part of OpenCursor — AI coding agent chat inside VS Code. https://github.com/PawanOsman/OpenCursor Licensed under the MIT License. See LICENSE file in the project root. /

// Source: https://github.com/PawanOsman/OpenCursor | License: MIT | Copyright 2026 Pawan Osman
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Copyright (c) 2026 Pawan Osman <https://github.com/PawanOsman>
 *
 * This file is part of OpenCursor — AI coding agent chat inside VS Code.
 * https://github.com/PawanOsman/OpenCursor
 *
 * Licensed under the MIT License. See LICENSE file in the project root.
 */

// Service-account credentials remain in host memory and never enter UI status.
import { createHash, sign } from "node:crypto";
import { authFetch } from "./auth/network.js";
import type { AuthLogger } from "./auth/types.js";

export interface GoogleServiceAccount extends Record<string, unknown> {
  type: "service_account";
  client_email: string;
  private_key: str

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key