export class AuthenticationLoader { handlers = []; addAuthenticationHandler(authenticationHandler) { this.handlers.push(authenticationHandler); } async tryLogin(username, password, totpCode) { for (let i of this.handlers) { const result = await i.tryLogin(username, password, totpCode); if (result !== null) return result; } return false; } async needTotp(username, password) { for (let i of this.handlers) { const result = await i.needTotp(username, password); if (result !== null) return result; } return false; } } import { YesManAuthenticationHandler } from './yesManAuthenticationHandler.js'; export { YesManAuthenticationHandler }; import { TotpChecker } from './totpChecker.js'; export { TotpChecker }; import { SqliteAuthenticationHandler } from './sqliteAuthenticationHandler.js'; export { SqliteAuthenticationHandler }; import { LdapAuthenticationHandler } from './ldapAuthenticationHandler.js'; export { LdapAuthenticationHandler }; //# sourceMappingURL=index.js.map