5

I run a local emulator for firebase functions. When I'm executing an onCall function from the frontend side I see this message in my functions' console:

{"verifications":{"app":"VALID","auth":"MISSING"},"logging.googleapis.com/labels":{"firebase-log-type":"callable-request-verification"},"severity":"INFO","message":"Callable request verification passed"}

I followed all the instructions (activated App Check in Firebase console, connected reCaptcha, and set up the debug token), but still no success. Does anyone have an idea what's wrong here? Does the App Check work with functions using emulator at all?

3
  • This message looks like the app check call succeeded, but there was no user auth information. Are you saying you expected to see the auth property to be populated too? Commented Sep 15, 2021 at 18:14
  • @FrankvanPuffelen indeed, it seems like the auth property needs to be VALID too. But I don't know how to achieve that. In the console output, I can see that the function is being triggered but not executed. Commented Sep 15, 2021 at 18:54
  • Another interesting thing is that the request from the frontend returns 200 status, which means success. Commented Sep 15, 2021 at 19:01

1 Answer 1

2

I just found what was the problem. I use TypeScript and I did one trick to make path aliases to work with the emulator (by default they do not work). So I had a code explicitly compiling TS using tsconfig-paths npm package in the index file. When I removed that code and refactored my files to not use path aliases it started working for some reason.

2
  • what was the trick? can you show exactly what you did please! Commented Jan 25, 2023 at 10:47
  • @SolomonGbadamosi I've just checked my project. I still see this message about missing auth in the console, actually. But the project works fine, so I don't pay attention to the error. What is your issue currently? Frontend and backend can't communicate locally in the emulator mode? Commented Jan 26, 2023 at 11:13

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.