Skip to content

Accept BooleanParams in CallableOptions#1854

Merged
wandamora merged 2 commits intofirebase:masterfrom
wandamora:wm-fix-callable-options
Apr 2, 2026
Merged

Accept BooleanParams in CallableOptions#1854
wandamora merged 2 commits intofirebase:masterfrom
wandamora:wm-fix-callable-options

Conversation

@wandamora
Copy link
Copy Markdown
Contributor

CallableOptions was not matching the same behavior as HttpsOptions, where app check env variables should be resolvable. This updates enforceAppCheck and consumeAppCheckToken to accept BooleanParams.

CallableOptions was not matching the same behavior as HttpsOptions,
where app check env variables should be resolvable. This updates
enforceAppCheck and consumeAppCheckToken to accept BooleanParams.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the CallableOptions interface to allow enforceAppCheck and consumeAppCheckToken to accept Expression<boolean> values in addition to standard booleans. It also updates the onCall handler logic to resolve these expressions correctly. The reviewer suggested simplifying the resolution logic for enforceAppCheck using the nullish coalescing operator to improve conciseness and future-proof the implementation.

@wandamora wandamora force-pushed the wm-fix-callable-options branch from c3db75d to a67c6c3 Compare April 1, 2026 22:15
@wandamora wandamora requested a review from jhuleatt April 1, 2026 22:17
@wandamora wandamora marked this pull request as ready for review April 1, 2026 22:18
CallableOptions was not matching the same behavior as HttpsOptions,
where app check env variables should be resolvable. This updates
enforceAppCheck and consumeAppCheckToken to accept BooleanParams.
@wandamora wandamora force-pushed the wm-fix-callable-options branch from a67c6c3 to 320b499 Compare April 1, 2026 22:25
@cabljac
Copy link
Copy Markdown
Contributor

cabljac commented Apr 2, 2026

@IzaakGough (I can't assign you as a reviewer properly yet) Can you review this please?

Copy link
Copy Markdown

@IzaakGough IzaakGough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@wandamora wandamora added this pull request to the merge queue Apr 2, 2026
Merged via the queue into firebase:master with commit 9186780 Apr 2, 2026
15 checks passed
@wandamora wandamora deleted the wm-fix-callable-options branch April 2, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CallableOptions doesn't accept BooleanParam which is accepted by HttpsOptions

3 participants