@feathersjs/authentication-local
Version:
Local authentication strategy for @feathers/authentication
14 lines (13 loc) • 522 B
TypeScript
import { HookContext, NextFunction } from '@feathersjs/feathers';
export interface HashPasswordOptions {
authentication?: string;
strategy?: string;
}
/**
* @deprecated Use Feathers schema resolvers and the `passwordHash` resolver instead
* @param field
* @param options
* @returns
* @see https://dove.feathersjs.com/api/authentication/local.html#passwordhash
*/
export default function hashPassword(field: string, options?: HashPasswordOptions): (context: HookContext, next?: NextFunction) => Promise<any>;