Skip to content

Invalid field "authType" for an https callable function #162

Closed
@phcoliveira

Description

@phcoliveira

if (validFields.indexOf(key) === -1) {

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.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions