UNPKG

dovecot-auth-client

Version:

Dovecot authentication socket protocol client for Node

18 lines (16 loc) 565 B
interface DovecotAuthOptions { socketPath?: string; service?: string; timeout?: number; } /** * Authenticate a user against Dovecot's auth-client socket. * * @param username - The username to authenticate. * @param password - The password to authenticate. * @param options - Optional configuration. * @returns Resolves true if auth succeeded, false if not. */ declare function dovecotAuth(username: string, password: string, options?: DovecotAuthOptions): Promise<boolean>; export { dovecotAuth as default }; export type { DovecotAuthOptions };