The Auth Unit


exports:  class AuthUnit

class AuthUnit

extends:  libflitter/Unit

go(express app, function next)

returns:  undefined

Registers this.deploy() as the auth deployment. This establishes the FlitterAuth context and runs the next function in the stack under it.


returns:  Object

Returns an Object describing the services, templates, and directories provided by this unit. They are as follows:

Type Key Value Notes
Service Name name "flitter-auth" The name of the service. This is added to the array so other units can check for this unit.
deploy(function callback)

Deploys the files necessary to use flitter-auth. This includes deploying controllers, models, middleware, routers, and views. Then, after this has completed, it calls the callback function.

FlitterAuth Context

Guarantees that the auth deployment has been registered.

No Comments
Back to top