UNPKG

613 BTypeScriptView Raw
1/**
2 * This module contains a set of standard verifiers to ensure user authentication
3 * and authorization.
4 */
5import * as express from "express";
6import Request from "./request";
7/**
8 * Verify that the user is authenticated.
9 */
10export declare function authUser(req: Request, _: express.Response): boolean;
11/**
12 * Verify that the user is NOT authenticated.
13 */
14export 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 */
18export declare function isStaffOrGreater(req: Request, res: express.Response): boolean;