chore: create script to print new google auth token for testing

This commit is contained in:
2024-10-21 18:41:12 +08:00
parent 7f8fd882aa
commit 2a4e8144c4
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
import { getAdminSdkCredentials } from "~/libs/gcloud/getAdminSdkCredentials";
import { getGoogleAuthToken } from "~/libs/gcloud/getGoogleAuthToken";
console.log(await getGoogleAuthToken(getAdminSdkCredentials(process.env)));

1
src/types/env.d.ts vendored
View File

@@ -7,5 +7,4 @@ interface Env extends HonoEnv, Record<string, unknown> {
TURSO_AUTH_TOKEN: string;
ENABLE_ANIFY: string;
ADMIN_SDK_JSON: string;
TURSO_AUTH_TOKEN: string;
}