From 2a4e8144c4fe255d0a3646a39b5cdde0a91e87bd Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Mon, 21 Oct 2024 18:41:12 +0800 Subject: [PATCH] chore: create script to print new google auth token for testing --- src/scripts/printGoogleAuthToken.ts | 4 ++++ src/types/env.d.ts | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/scripts/printGoogleAuthToken.ts diff --git a/src/scripts/printGoogleAuthToken.ts b/src/scripts/printGoogleAuthToken.ts new file mode 100644 index 0000000..28f109c --- /dev/null +++ b/src/scripts/printGoogleAuthToken.ts @@ -0,0 +1,4 @@ +import { getAdminSdkCredentials } from "~/libs/gcloud/getAdminSdkCredentials"; +import { getGoogleAuthToken } from "~/libs/gcloud/getGoogleAuthToken"; + +console.log(await getGoogleAuthToken(getAdminSdkCredentials(process.env))); diff --git a/src/types/env.d.ts b/src/types/env.d.ts index a37acba..6924c2d 100644 --- a/src/types/env.d.ts +++ b/src/types/env.d.ts @@ -7,5 +7,4 @@ interface Env extends HonoEnv, Record { TURSO_AUTH_TOKEN: string; ENABLE_ANIFY: string; ADMIN_SDK_JSON: string; - TURSO_AUTH_TOKEN: string; }