mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 05:29:08 +08:00
feat: add captcha support for sign in/up (#4582)
This commit is contained in:
Vendored
+9
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user