I have successfully created and deployed Firebase Functions while also being able to test locally with the firebase serve
command of firebase-tools. I can then send requests to the endpoints with the Postman app (and curl would likely be as good to use).
Now I'm at the point that I need to secure my functions, and the best practice seems to be verifying the uid token of the Authorization header (based on what I've read). This advice makes sense and I found some code which may do the trick.
But how do I retrieve a token or authenticate with Firebase Auth to then test my newly secured and locally-served functions using Postman or curl?
I know how to load the Authentication data into a REST request, but how does one get the user token from Firebase, on a testing basis, to make the authentication work locally for authenticated endpoints?