| 12345678910111213141516 |
- import { IAuthenticationHandler } from "./index.js";
- export interface AccountInformation {
- username: string;
- passwordEncoded: string;
- totpSecret: string | null;
- }
- export type GetAccountInformationFunction = ((username: string) => Promise<AccountInformation | null>);
- export type EncodePasswordFunction = ((password: string) => string);
- export declare class SqliteAuthenticationHandler implements IAuthenticationHandler {
- passwordEncoder: EncodePasswordFunction;
- getAccountInformation: GetAccountInformationFunction;
- constructor(getAccountInformationFunction: GetAccountInformationFunction, passwordEncoder: EncodePasswordFunction);
- needTotp(username: string): Promise<boolean | null>;
- tryLogin(username: string, password: string, totp?: string): Promise<boolean | null>;
- }
- //# sourceMappingURL=sqliteAuthenticationHandler.d.ts.map
|