mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-12 10:24:20 +08:00
Fix typo
This commit is contained in:
parent
69cc227c87
commit
47cc917bb4
2 changed files with 2 additions and 2 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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("|");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue