node-jet
Version:
Jet Realtime Message Bus for the Web. Daemon and Peer implementation.
11 lines (10 loc) • 465 B
TypeScript
import type { access } from './route.js';
export declare class UserManager {
users: Record<string, string>;
groups: Record<string, string[]>;
enabled: boolean;
constructor(adminUser?: string, password?: string);
addUser: (requestUser: string, newUser: string, password: string, groups: string[]) => void;
login: (user: string, password: string) => boolean;
isAllowed: (method: "get" | "set", user: string, access?: access) => boolean;
}