1 | /**
|
2 | * This module contains a set of standard verifiers to ensure user authentication
|
3 | * and authorization.
|
4 | */
|
5 | import * as express from "express";
|
6 | import Request from "./request";
|
7 | /**
|
8 | * Verify that the user is authenticated.
|
9 | */
|
10 | export declare function authUser(req: Request, _: express.Response): boolean;
|
11 | /**
|
12 | * Verify that the user is NOT authenticated.
|
13 | */
|
14 | export declare function notAuthUser(req: Request, res: express.Response): boolean;
|
15 | /**
|
16 | * Verify that the user is logged and that is at least a Staff member.
|
17 | */
|
18 | export declare function isStaffOrGreater(req: Request, res: express.Response): boolean;
|