diff --git a/app/src/services/Firebase.js b/app/src/services/Firebase.js index 83987be9..8cdc7e4c 100644 --- a/app/src/services/Firebase.js +++ b/app/src/services/Firebase.js @@ -30,7 +30,7 @@ class FirebaseService { } async getUserId() { - return await this.firebase.auth().currentUser.getIdToken(); + return await this.firebase.auth().currentUser?.getIdToken(); } async getCurrentUser() { return this.firebase.auth().currentUser;