From b69adc4ed4916a3399d9cbef16583e7ff1515e41 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Wed, 3 Jul 2024 14:10:36 +0100 Subject: [PATCH] [-] Secrets --- src/service/api.test.js | 0 src/service/api.tsx | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 src/service/api.test.js diff --git a/src/service/api.test.js b/src/service/api.test.js new file mode 100644 index 0000000..e69de29 diff --git a/src/service/api.tsx b/src/service/api.tsx index 3d5352d..9156878 100644 --- a/src/service/api.tsx +++ b/src/service/api.tsx @@ -78,10 +78,9 @@ class serviiApi { } private static token(): string { - //const currentUser = getAuth().currentUser; - //if (!currentUser) {throw new Error('No user is currently logged in.');} - //return currentUser.uid; - return "MpkbDMOO8PQddQgB5VgBQdTMWF53" + const currentUser = getAuth().currentUser; + if (!currentUser) {throw new Error('No user is currently logged in.');} + return currentUser.uid; } public static async setSubdomain(subdomain: string): Promise {