Skip to content

Commit

Permalink
fix(appcheck): use correct header name
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Oct 27, 2023
1 parent beb1a8f commit 7a8f358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/middlewares/appcheck.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {getAppCheck} from 'firebase-admin/app-check';
import * as httpErrors from 'http-errors';

export const appCheckVerification: RequestHandler = async (req, res, next) => {
const appCheckToken = req.header('X-Firebase-AppCheck');
const appCheckToken = req.header('X-Appcheck-Token');

if (!appCheckToken) {
throw new httpErrors.Unauthorized('Missing App Check token');
Expand Down

0 comments on commit 7a8f358

Please sign in to comment.