Skip to content

Commit fee902b

Browse files
feat: use .eslintignore instead of .gitignore
1 parent 0c2b3f6 commit fee902b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"preinstall": "source /usr/local/opt/nvm/nvm.sh; nvm use; command -v link-module-alias && link-module-alias clean || true",
1212
"format": "prettier-standard './**/**/*.js'",
1313
"lint": "npm run lint:js",
14-
"lint:eslint": "eslint --ignore-path .gitignore --ignore-pattern server/bin",
14+
"lint:eslint": "eslint --ignore-path .eslintignore --ignore-pattern server/bin",
1515
"lint:eslint:fix": "eslint --ignore-path .eslintignore --ignore-pattern server/bin --fix",
1616
"lint:js": "npm run lint:eslint -- . ",
1717
"lint:staged": "lint-staged",

server/middlewares/auth/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import jwks from 'jwks-rsa';
55
import { apiFailure } from 'utils/apiUtils';
66
import { SCOPE_TYPE } from 'utils/constants';
77
import message from 'utils/i18n/message';
8+
import log from 'utils/logger';
89
import { paths } from './paths';
910

1011
export const checkRole = async (req, res, next) => {
@@ -56,6 +57,7 @@ function getRoutePath(req) {
5657
return req.baseUrl + (path === '/' ? '' : path);
5758
}
5859
export const checkJwt = (req, res, next) => {
60+
log.info('incoming request::', getRoutePath(req));
5961
let pathMatchFound = false;
6062
const routePath = getRoutePath(req);
6163
paths.map(route => {

0 commit comments

Comments
 (0)