From 47cc917bb42880bd076982c586ed754158af21a0 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Sat, 10 Jan 2026 09:49:51 +0200 Subject: [PATCH] Fix typo --- backend/__tests__/middlewares/auth.spec.ts | 2 +- backend/src/middlewares/auth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/__tests__/middlewares/auth.spec.ts b/backend/__tests__/middlewares/auth.spec.ts index fc679171a..37d638ae7 100644 --- a/backend/__tests__/middlewares/auth.spec.ts +++ b/backend/__tests__/middlewares/auth.spec.ts @@ -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 () => { diff --git a/backend/src/middlewares/auth.ts b/backend/src/middlewares/auth.ts index b7ba840a5..d90003c43 100644 --- a/backend/src/middlewares/auth.ts +++ b/backend/src/middlewares/auth.ts @@ -302,7 +302,7 @@ async function authenticateWithApeKey( async function authenticateWithUid(token: string): Promise { 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("|");