lynx-framework
Version:
lynx is a NodeJS framework for Web Development, based on decorators and the async/await support.
19 lines (18 loc) • 613 B
TypeScript
/**
* This module contains a set of standard verifiers to ensure user authentication
* and authorization.
*/
import * as express from "express";
import Request from "./request";
/**
* Verify that the user is authenticated.
*/
export declare function authUser(req: Request, _: express.Response): boolean;
/**
* Verify that the user is NOT authenticated.
*/
export declare function notAuthUser(req: Request, res: express.Response): boolean;
/**
* Verify that the user is logged and that is at least a Staff member.
*/
export declare function isStaffOrGreater(req: Request, res: express.Response): boolean;