๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐—”๐˜‚๐˜๐—ต ๐—ช๐—ถ๐˜๐—ต๐—ผ๐˜‚๐˜ ๐—›๐—ฒ๐—ฎ๐˜ƒ๐˜† ๐—ฃ๐—ฎ๐—ฐ๐—ธ๐—ฎ๐—ด๐—ฒ๐˜€

The googleapis package is the standard for Node.js. It works. It is huge. It adds 450 dependencies to your project. You do not need this for a simple CI script.

I built a script to check URL index status. It uses 60 lines of code. It uses only Node.js built-ins like crypto, fetch, and URL. It adds zero packages to the repo.

Google service accounts use a JWT Bearer Grant. Here is the flow:

Keep these tips in mind:

Use this raw method for small scripts or CI pipelines. Use a library if you:

Clean code beats 450 dependencies for a narrow use case. Understanding the raw flow makes debugging easier.

Source: https://dev.to/morinaga/rolling-a-google-service-account-jwt-in-nodejs-without-the-googleapis-package-pig