refactor: create function to read admin SDK JSON

This commit is contained in:
2024-10-05 11:21:20 -04:00
parent 62217ae75b
commit 44d579ee6d
9 changed files with 63 additions and 72 deletions

View File

@@ -2,7 +2,7 @@ import type { TokenOptions } from "gtoken";
import { mock } from "bun:test";
import type { AdminSdkCredentials } from "~/libs/gcloud/getGoogleAuthToken";
import type { AdminSdkCredentials } from "~/libs/gcloud/getAdminSdkCredentials";
const emailRegex =
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;