UNPKG

@rxstack/security

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