Skip to content

Enable Functions SDK debug mode on Functions Emulator#3873

Merged
taeold merged 2 commits intomasterfrom
dl-cf3v2-callable
Oct 29, 2021
Merged

Enable Functions SDK debug mode on Functions Emulator#3873
taeold merged 2 commits intomasterfrom
dl-cf3v2-callable

Conversation

@taeold
Copy link
Copy Markdown
Contributor

@taeold taeold commented Oct 28, 2021

Functions SDK now includes a debug mode that can be enabled via environment variables to operate in ways that's useful during development. See firebase/firebase-functions#983 for an example.

We will turn on Debug Mode and enable skipTokenVerification feature on the Functions Emulator. This means that callable functions will decode but not verify the signature of Auth and App Check tokens which is more or less what the monkey-patching of Firebase Functions SDK achieves. For some function triggers, we will now rely on the debug mode instead of the monkey patching to bypass the token verification.

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label Oct 28, 2021
@taeold taeold merged commit 56b6096 into master Oct 29, 2021
@taeold taeold deleted the dl-cf3v2-callable branch October 29, 2021 03:24
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
Functions SDK now includes a debug mode that can be enabled via environment variables to operate in ways that's useful during development. See firebase/firebase-functions#983 for an example.

We will turn on Debug Mode and enable `skipTokenVerification` feature on the Functions Emulator. This means that callable functions will decode but not verify the signature of Auth and App Check tokens which is more or less what the monkey-patching of Firebase Functions SDK achieves. For some function triggers, we will now rely on the debug mode instead of the monkey patching to bypass the token verification.
kroikie pushed a commit that referenced this pull request Mar 4, 2022
Functions SDK now includes a debug mode that can be enabled via environment variables to operate in ways that's useful during development. See firebase/firebase-functions#983 for an example.

We will turn on Debug Mode and enable `skipTokenVerification` feature on the Functions Emulator. This means that callable functions will decode but not verify the signature of Auth and App Check tokens which is more or less what the monkey-patching of Firebase Functions SDK achieves. For some function triggers, we will now rely on the debug mode instead of the monkey patching to bypass the token verification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Manual indication that this has passed CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants