feat: add captcha support for sign in/up (#4582)

This commit is contained in:
DarkSky
2023-10-18 03:06:07 -05:00
committed by GitHub
parent 524e48c8e6
commit 63ca9671be
42 changed files with 1275 additions and 302 deletions
+9
View File
@@ -25,6 +25,15 @@ export enum ValidationResult {
GeneralError = 3,
Valid = 4,
}
export function verifyChallengeResponse(
response: string,
bits: number,
resource: string
): Promise<boolean>;
export function mintChallengeResponse(
resource: string,
bits?: number | undefined | null
): Promise<string>;
export class SqliteConnection {
constructor(path: string);
connect(): Promise<void>;