This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { create, Header, Payload } from "https://deno.land/x/[email protected]/mod.ts"; | |
// License: MIT | |
// How to get an access token from Google Cloud using Deno | |
// | |
// Usage: | |
// const token = await getAccessToken(config) | |
type Config = { | |
privateKey: string; // Private base64 encoded RSA key, starts with -----BEGIN PRIVATE KEY----- |