symfio-contrib-auth

Authentication plugin. Uses tokens.

symfio-contrib-auth

Authentication plugin. Uses tokens.

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()
  • auth token expiration period — Default value is 7d.