• Version 4.5.15
  • Published
  • 57.7 kB
  • 6 dependencies
  • MIT license


npm i @feathersjs/authentication-local
yarn add @feathersjs/authentication-local
pnpm add @feathersjs/authentication-local


Local authentication strategy for @feathers/authentication



variable hooks

const hooks: {
hashPassword: (
field: string,
options?: HashPasswordOptions
) => (context: HookContext) => Promise<HookContext>;
protect: (...fields: string[]) => (context: HookContext) => any;


    class LocalStrategy

    class LocalStrategy extends AuthenticationBaseStrategy {}

      property configuration

      readonly configuration: any;

        method authenticate

        authenticate: (
        data: AuthenticationRequest,
        params: Params
        ) => Promise<{ [x: number]: any; authentication: { strategy: any } }>;

          method comparePassword

          comparePassword: (entity: any, password: string) => Promise<any>;

            method findEntity

            findEntity: (username: string, params: Params) => Promise<any>;

              method getEntity

              getEntity: (result: any, params: Params) => Promise<any>;

                method getEntityQuery

                getEntityQuery: (query: Query, _params: Params) => Promise<any>;

                  method hashPassword

                  hashPassword: (password: string, _params: Params) => Promise<any>;

                    method verifyConfiguration

                    verifyConfiguration: () => void;

                      Package Files (2)

                      Dependencies (6)

                      Dev Dependencies (9)

                      Peer Dependencies (0)

                      No peer dependencies.


                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@feathersjs/authentication-local.

                      • Markdown
                      • HTML
                        <a href="https://www.jsdocs.io/package/@feathersjs/authentication-local"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>