mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-10-21 23:11:21 -05:00
refactor: remove authentication middleware - unneeded and caused eslint to complain
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import express from 'express';
|
||||
import { getNEXDataByPID } from '@/util';
|
||||
|
||||
export default async function authenticationMiddleware(request: express.Request, response: express.Response, next: express.NextFunction): Promise<void> {
|
||||
if (request.pid) {
|
||||
// TODO - Get users PNIDs
|
||||
request.nexAccount = await getNEXDataByPID(request.pid);
|
||||
}
|
||||
|
||||
return next();
|
||||
}
|
||||
Reference in New Issue
Block a user