index.d.ts 1.2 KB

12345678910111213141516171819
  1. export interface IAuthenticationHandler {
  2. tryLogin(username: string, password: string, totp?: string): Promise<boolean | null>;
  3. needTotp(username: string, password: string): Promise<boolean | null>;
  4. }
  5. export declare class AuthenticationLoader {
  6. private handlers;
  7. addAuthenticationHandler(authenticationHandler: IAuthenticationHandler): void;
  8. tryLogin(username: string, password: string, totpCode?: string): Promise<boolean>;
  9. needTotp(username: string, password: string): Promise<boolean>;
  10. }
  11. import { YesManAuthenticationHandler } from './yesManAuthenticationHandler.js';
  12. export { YesManAuthenticationHandler };
  13. import { TotpChecker, ToTpGeneratorOptions, ToTpSecretAndUrl } from './totpChecker.js';
  14. export { TotpChecker, ToTpGeneratorOptions, ToTpSecretAndUrl };
  15. import { AccountInformation, EncodePasswordFunction, GetAccountInformationFunction, SqliteAuthenticationHandler } from './sqliteAuthenticationHandler.js';
  16. export { AccountInformation, EncodePasswordFunction, GetAccountInformationFunction, SqliteAuthenticationHandler };
  17. import { LdapAuthenticationConfiguration, LdapAuthenticationHandler } from './ldapAuthenticationHandler.js';
  18. export { LdapAuthenticationConfiguration, LdapAuthenticationHandler };
  19. //# sourceMappingURL=index.d.ts.map