Skip to content

Commit f7d38d9

Browse files
committed
rename auth middleware
1 parent 0ecb6dc commit f7d38d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/server/src/config/app.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dotenv/config';
22

33
import { AppConfig } from '@overture-stack/lyric';
44

5-
import { myAuthMiddleware } from '../middleware/auth.js';
5+
import { authMiddleware } from '../middleware/auth.js';
66

77
export const getServerConfig = () => {
88
return {
@@ -60,5 +60,5 @@ export const appConfig: AppConfig = {
6060
logger: {
6161
level: process.env.LOG_LEVEL || 'info',
6262
},
63-
authMiddleware: myAuthMiddleware,
63+
authMiddleware: authMiddleware,
6464
};

apps/server/src/middleware/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ declare module 'express-serve-static-core' {
99
}
1010
}
1111

12-
export const myAuthMiddleware = (req: Request, res: Response, next: NextFunction) => {
12+
export const authMiddleware = (req: Request, res: Response, next: NextFunction) => {
1313
// Middleware for implementing authentication logic.
1414

1515
req.user = {

0 commit comments

Comments
 (0)