symfio-contrib-auth

Authentication plugin. Uses tokens.

npm install symfio-contrib-auth
13 downloads in the last month

symfio-contrib-auth

Authentication plugin. Uses tokens.

Build Status Dependency Status

Usage

symfio = require "symfio"

container = symfio "example", __dirname
container.set "components", [
  "angular#~1.0",
  "angular-resource#~1.0",
  "angular-cookies#~1.0",
  "jquery#~1.9"
]

loader = container.get "loader"

loader.use require "symfio-contrib-express"
loader.use require "symfio-contrib-mongoose"
loader.use require "symfio-contrib-assets"
loader.use require "symfio-contrib-auth"
loader.use require "symfio-contrib-bower"

loader.load()

Required plugins

Can be configured

  • auth token expiration period — Default value is 7d.
npm loves you