Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Cloud Functions shell : add authentication token in order to call callable

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

like image 928
Germs Avatar asked Oct 28 '22 18:10

Germs


1 Answers

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.

like image 200
Doug Stevenson Avatar answered Oct 31 '22 09:10

Doug Stevenson