Module: Contains utility functions to be used only by verificationHelper. To verify privilege use verifyPrivilege from verificationHelper module.

Methods

(async, inner) verifyAdminAndFluxTeamSession(headers) → {Promise.<boolean>}

Verifies admin or flux team session
Parameters:
Name Type Description
headers object
Source:
Returns:
Type
Promise.<boolean>

(async, inner) verifyAdminSession(headers) → {Promise.<boolean>}

Verifies admin session
Parameters:
Name Type Description
headers object
Source:
Returns:
Type
Promise.<boolean>

(async, inner) verifyAppOwnerOrHigherSession(headers) → {Promise.<boolean>}

Verifies app owner (or higher privilege) session
Parameters:
Name Type Description
headers object
Source:
Returns:
Type
Promise.<boolean>

(async, inner) verifyAppOwnerSession(headers) → {Promise.<boolean>}

Verifies app owner session
Parameters:
Name Type Description
headers object
Source:
Returns:
Type
Promise.<boolean>

(async, inner) verifyFluxTeamSession(headers) → {Promise.<boolean>}

Verifies flux team session
Parameters:
Name Type Description
headers object
Source:
Returns:
Type
Promise.<boolean>

(async, inner) verifyUserSession(headers) → {Promise.<boolean>}

Verifies user session
Parameters:
Name Type Description
headers object
Source:
Returns:
Type
Promise.<boolean>