MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / verifyCaptcha

Function verifyCaptcha

backend/src/api/controllers/quote.ts:27–31  ·  view source on GitHub ↗
(captcha: string)

Source from the content-addressed store, hash-verified

25import { Language } from "@monkeytype/schemas/languages";
26
27async function verifyCaptcha(captcha: string): Promise<void> {
28 if (!(await verify(captcha))) {
29 throw new MonkeyError(422, "Captcha check failed");
30 }
31}
32
33export async function getQuotes(
34 req: MonkeyRequest,

Callers 2

addQuoteFunction · 0.70
reportQuoteFunction · 0.70

Calls 1

verifyFunction · 0.90

Tested by

no test coverage detected