Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

260 B
Raw Blame
import type { NextFunction, Request, Response } from 'express';

export const RejectApiTokenAuth = (req: Request, res: Response, next: NextFunction) => {
    if (req.appUser.isApiTokenAuth()) {
        return res.status(403).end();
    }
    return next();
};