@rxstack/security
Version:
RxStack Security Module
10 lines (9 loc) • 425 B
TypeScript
import { UserFactoryFunc, UserProviderInterface } from '../interfaces';
import { UserInterface } from '@rxstack/core';
export declare class InMemoryUserProvider<T extends UserInterface> implements UserProviderInterface {
static readonly PROVIDER_NAME = "in-memory";
private users;
constructor(data: any, factory: UserFactoryFunc<T>);
loadUserByUsername(username: string): Promise<T>;
getName(): string;
}