Change firebase handler rejection logging.
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
import { PauseCircleOutlined } from "@ant-design/icons";
|
import { PauseCircleOutlined } from "@ant-design/icons";
|
||||||
import { Space, Tag } from "antd";
|
import { Space } from "antd";
|
||||||
import i18n from "i18next";
|
import i18n from "i18next";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import React from "react";
|
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import CurrencyFormatter from "../../utils/CurrencyFormatter";
|
import CurrencyFormatter from "../../utils/CurrencyFormatter";
|
||||||
import { TimeFormatter } from "../../utils/DateFormatter";
|
import { TimeFormatter } from "../../utils/DateFormatter";
|
||||||
|
|||||||
@@ -257,12 +257,14 @@ exports.validateFirebaseIdToken = async (req, res, next) => {
|
|||||||
return;
|
return;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.log("api-unauthorized-call", "WARN", null, null, {
|
logger.log("api-unauthorized-call", "WARN", null, null, {
|
||||||
req,
|
path: req.path,
|
||||||
|
body: req.body,
|
||||||
|
|
||||||
type: "unauthroized",
|
type: "unauthroized",
|
||||||
error,
|
...error,
|
||||||
});
|
});
|
||||||
|
|
||||||
res.status(403).send("Unauthorized");
|
res.status(401).send("Unauthorized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user