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 {