aero-auth
Allows users to login.
Last updated 3 years ago by blitzprog .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install aero-auth 
SYNC missed versions from official npm registry.

aero-auth

Allow users to login. Requires additional plugins for each login provider.

Installation

Add aero-auth to dependencies in your package.json:

"dependencies": {
	"aero-auth": "*"
}

Make sure you added a database plugin like aerospike before aero-auth is loaded.

Session secret

Your security/api-keys.json should include a session secret if you don't want sessions to be lost on server restart:

{
	"session": {
		"secret": "11111111111111111111111111111111"
	}
}

Database

This plugin will populate the Users table and assume that id is defined for users. It will also use the Sessions table to store session data.

Logout

This plugin will add the route /logout which destroys the session and redirects back to the frontpage.

Current Tags

  • 0.0.3                                ...           latest (3 years ago)

3 Versions

  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |