@feathersjs/authentication-local
Version:
Local authentication strategy for @feathers/authentication
20 lines (19 loc) • 812 B
TypeScript
import { Query, Params } from '@feathersjs/feathers';
import { AuthenticationRequest, AuthenticationBaseStrategy } from '@feathersjs/authentication';
export declare class LocalStrategy extends AuthenticationBaseStrategy {
verifyConfiguration(): void;
get configuration(): any;
getEntityQuery(query: Query, _params: Params): Promise<{
$limit: number;
}>;
findEntity(username: string, params: Params): Promise<any>;
getEntity(result: any, params: Params): Promise<any>;
comparePassword(entity: any, password: string): Promise<any>;
hashPassword(password: string, _params: Params): Promise<string>;
authenticate(data: AuthenticationRequest, params: Params): Promise<{
[x: number]: any;
authentication: {
strategy: string;
};
}>;
}