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("|");