firebase-functions-test
firebase-functions-test copied to clipboard
Invalid field "authType" for an https callable function
trafficstars
https://github.com/firebase/firebase-functions-test/blob/9f401ca71cc27cf766cc6e1e45e089e348c610d5/src/v1.ts#L221
Hello there. I think I found a bug, but it seems to be a mismatch between what is shown by the typing of the wrapped function.
const wrapped = testFunctions.wrap(addPlayer)
const result = await wrapped(data, {authType: 'USER', auth: {uid: 'p2'}})
Here is what I have. The type of the function wrapped suggests that the field authType is valid. However, while debugging a silent error, I found out that this field is not present in the array validFields.
