From 23a797cfab8182e8f2ebbb6e113177a533afcd3c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 8 Aug 2025 09:57:17 -0500 Subject: Captcha fixes (#8803) * Add env to scripts * Update var name --- src/env/common.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/env/common.ts b/src/env/common.ts index dd2df7b17..fbf477726 100644 --- a/src/env/common.ts +++ b/src/env/common.ts @@ -80,8 +80,10 @@ export const BITDRIFT_API_KEY: string | undefined = process.env.EXPO_PUBLIC_BITDRIFT_API_KEY /** - * GCP project ID which is required for device attestation + * GCP project ID which is required for native device attestation. On web, this + * should be unset and evaluate to 0. */ -export const GCP_PROJECT_ID: number = Number( - process.env.EXPO_PUBLIC_GCP_PROJECT_ID, -) +export const GCP_PROJECT_ID: number = + process.env.EXPO_PUBLIC_GCP_PROJECT_ID === undefined + ? 0 + : Number(process.env.EXPO_PUBLIC_GCP_PROJECT_ID) -- cgit 1.4.1