Skip to content

Commit cc18326

Browse files
authored
Auth Blocking Triggers Bugbash (#1140)
* adding run.app audience for v2 functions * linter & formatter
1 parent 3737898 commit cc18326

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/common/providers/identity.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,13 @@ export function wrapHandler(
835835
'skipTokenVerification'
836836
)
837837
? unsafeDecodeAuthBlockingToken(req.body.data.jwt)
838+
: handler.length === 2
839+
? await apps()
840+
.admin.auth()
841+
._verifyAuthBlockingToken(req.body.data.jwt)
838842
: await apps()
839843
.admin.auth()
840-
._verifyAuthBlockingToken(req.body.data.jwt);
844+
._verifyAuthBlockingToken(req.body.data.jwt, 'run.app');
841845

842846
const authUserRecord = parseAuthUserRecord(decodedPayload.user_record);
843847
const authEventContext = parseAuthEventContext(decodedPayload, projectId);

0 commit comments

Comments
 (0)