Skip to content

Commit ff42b2f

Browse files
committed
fix: add missing MISSING case
1 parent 74abcf9 commit ff42b2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/firebase_functions/https_fn.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ def _on_call_handler(func: _C2, request: Request,
363363
raise HttpsError(FunctionsErrorCode.UNAUTHENTICATED,
364364
"Unauthenticated")
365365

366-
if enforce_app_check and token_status.app == _util.OnCallTokenState.INVALID:
366+
if enforce_app_check and token_status.app in (
367+
_util.OnCallTokenState.MISSING, _util.OnCallTokenState.INVALID):
367368
raise HttpsError(FunctionsErrorCode.UNAUTHENTICATED,
368369
"Unauthenticated")
369370
if token_status.app == _util.OnCallTokenState.VALID and token_status.app_token is not None:

0 commit comments

Comments
 (0)