This commit is contained in:
Leonabcd123 2026-01-10 09:49:51 +02:00
parent 69cc227c87
commit 47cc917bb4
2 changed files with 2 additions and 2 deletions

View file

@ -249,7 +249,7 @@ describe("middlewares/auth", () => {
await expect(() =>
authenticate({ headers: { authorization: "Uid 123" } }),
).rejects.toMatchMonkeyError(
new MonkeyError(401, "Baerer type uid is not supported"),
new MonkeyError(401, "Bearer type uid is not supported"),
);
});
it("should fail without authentication", async () => {

View file

@ -302,7 +302,7 @@ async function authenticateWithApeKey(
async function authenticateWithUid(token: string): Promise<DecodedToken> {
if (!isDevEnvironment()) {
throw new MonkeyError(401, "Baerer type uid is not supported");
throw new MonkeyError(401, "Bearer type uid is not supported");
}
const [uid, email] = token.split("|");