New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@feathersjs/authentication-local

Package Overview
Dependencies
Maintainers
4
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/authentication-local

Local authentication strategy for @feathers/authentication

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30K
increased by9.07%
Maintainers
4
Weekly downloads
 
Created
Source

@feathersjs/authentication-local

Greenkeeper badge

Build Status Test Coverage Dependency Status Download Status

Local authentication strategy for feathers-authentication using Passport without all the boilerplate.

Installation

npm install @feathersjs/authentication-local --save

Quick example

const feathers = require('@feathersjs/feathers');
const authentication = require('feathers-authentication');
const local = require('@feathersjs/authentication-local');
const app = feathers();

// Setup authentication
app.configure(authentication(settings));
app.configure(local());

// Setup a hook to only allow valid JWTs or successful 
// local auth to authenticate and get new JWT access tokens
app.service('authentication').hooks({
  before: {
    create: [
      authentication.hooks.authenticate(['local', 'jwt'])
    ]
  }
});

Documentation

Please refer to the @feathersjs/authentication-local API documentation for more details.

License

Copyright (c) 2018

Licensed under the MIT license.

Keywords

FAQs

Package last updated on 23 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc