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