Skip to content

aerojs/aero-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

❄️ Allow users to login.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published