AuthUnit

flitter-auth/AuthUnit~ AuthUnit

Registers functionality provided by flitter-auth.

Constructor

new AuthUnit()

Source:

Extends

Methods

(async) cleanup(app) → {Promise.<void>}

Source:
Inherited From:

Cleans up the unit's resources before Flitter closes.

Parameters:
Name Type Description
app module:libflitter/app/FlitterApp~FlitterApp

the Flitter app

Returns:
Type
Promise.<void>

(async) deploy() → {Promise.<void>}

Source:

Deploy the resources provided by flitter-auth. That is, the controllers/views/routes/models/middleware/etc.

Returns:
Type
Promise.<void>

directories() → {Object}

Source:
Inherited From:

Get the directories provided by the unit. Should be an object such that key => value is the name of the directory => fully qualified path to the directory.

Returns:
Type
Object

(async) go(app, context) → {Promise.<void>}

Source:
Overrides:

Loads the unit. This should attach the unit's functionality to the Flitter app. It is provided a context where its variables and methods that need to be made available to the rest of the app should reside.

Parameters:
Name Type Description
app module:libflitter/app/FlitterApp~FlitterApp

the Flitter app

context module:libflitter/Context~Context

the unit's context. This is where variables and methods provided by the unit should be bound.

Returns:
Type
Promise.<void>

migrations() → {string}

Source:

Get the fully-qualified path to the migrations provided by this unit.

Returns:
Type
string

name() → {string}

Source:
Overrides:

Get the name of this unit.

Returns:

"auth"

Type
string