TypeError: this.path.replace is not a function at new FirestoreDelete

Trying to remove the users`s data calling a function from app. ‘use strict’; const functions = require(‘firebase-functions’); const firebase_tools = require(‘firebase-tools’); const admin = require(‘firebase-admin’); const serviceAccount = require(‘./myapp.json’); admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: “https://myapp.firebaseio.com” }); let db = admin.firestore(); exports.mintAdminToken = functions.https.onCall((data, context) => { const uid = data.uid; return admin .auth() .createCustomToken(uid, { admin:…

Details

How to fix java.util.concurrent.ExecutionException:

I saw some crash reports on Google Play Android vitals coming from this code: val currentUser = auth.currentUser if (currentUser != null) { sessionToken = Tasks.await(currentUser.getIdToken(true)).token newRequest = request .newBuilder() .header(AUTHORIZATION, “$BEARER $sessionToken”) .build() } else { newRequest = request .newBuilder() .build() } the line with the issue is this: sessionToken = Tasks.await(currentUser.getIdToken(true)).token auth is…

Details