6

How is it possible in firebase cloud function shell, to add authentication token, in order to test callables that require authentication ?

what is good syntax for user authentication token :

firebase > myAwsomeCallable({foo:"bar"},{"whatIsKeyforToken:"token");

Does anyone can knows a working example ? what is correct data structure for second parameter (which is context/authent in callable signature) ?

Best regards

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Germs
  • 347
  • 6
  • 8

1 Answers1

2

The documentation for locally testing callable functions currently says:

Emulation of context.auth is currently unavailable.

So, what you're trying to do is currently not possible. If this is important to you, please file a feature request.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441