From f3491957d8599a7ba97d9cb324274df49b6fdbd0 Mon Sep 17 00:00:00 2001 From: jw255 Date: Tue, 6 Mar 2018 16:50:03 +0000 Subject: authentication tests --- src/auth.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/auth.ts') diff --git a/src/auth.ts b/src/auth.ts index 5a1707c..6339260 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -112,9 +112,7 @@ export class AuthRouter { // Handle error if user is unauthorised export const unauthorisedErr: Errorware = (err: Error, req: Request, res: Response, next: NextFunction): void => { - console.log('fffff'); if (err.name === 'UnauthorizedError') { - console.log('efewfwf'); return next(new RequestError( 401, 'not_authorised', 'user does not have correct authorisation for task' -- cgit v1.2.1