UNPKG

@rxstack/security

Version:
10 lines (9 loc) 425 B
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; }