about summary refs log tree commit diff
path: root/src/env/common.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/env/common.ts')
-rw-r--r--src/env/common.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/env/common.ts b/src/env/common.ts
index 5b902622b..fbf477726 100644
--- a/src/env/common.ts
+++ b/src/env/common.ts
@@ -78,3 +78,12 @@ export const SENTRY_DSN: string | undefined = process.env.EXPO_PUBLIC_SENTRY_DSN
  */
 export const BITDRIFT_API_KEY: string | undefined =
   process.env.EXPO_PUBLIC_BITDRIFT_API_KEY
+
+/**
+ * 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 =
+  process.env.EXPO_PUBLIC_GCP_PROJECT_ID === undefined
+    ? 0
+    : Number(process.env.EXPO_PUBLIC_GCP_PROJECT_ID)