Change firebase handler rejection logging.

This commit is contained in:
Patrick Fic
2022-06-28 16:24:49 -07:00
parent 1d80153da1
commit d45f84afbd
2 changed files with 6 additions and 5 deletions

View File

@@ -1,8 +1,7 @@
import { PauseCircleOutlined } from "@ant-design/icons";
import { Space, Tag } from "antd";
import { Space } from "antd";
import i18n from "i18next";
import moment from "moment";
import React from "react";
import { Link } from "react-router-dom";
import CurrencyFormatter from "../../utils/CurrencyFormatter";
import { TimeFormatter } from "../../utils/DateFormatter";

View File

@@ -257,12 +257,14 @@ exports.validateFirebaseIdToken = async (req, res, next) => {
return;
} catch (error) {
logger.log("api-unauthorized-call", "WARN", null, null, {
req,
path: req.path,
body: req.body,
type: "unauthroized",
error,
...error,
});
res.status(403).send("Unauthorized");
res.status(401).send("Unauthorized");
return;
}
};