Skip to content

Commit c1b2baa

Browse files
remove code about module.paths pushing on authentication
1 parent bb4620d commit c1b2baa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/registry/domain/authentication.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import basicAuth from 'basic-auth-connect';
22
import { RequestHandler } from 'express';
3-
import path from 'path';
43

54
import strings from '../../resources/';
65

@@ -45,9 +44,6 @@ export function validate(authConfig: { type: string }) {
4544
if (builtin[authConfig.type]) {
4645
scheme = builtin[authConfig.type];
4746
} else {
48-
const cwd = process.cwd();
49-
module.paths.push(cwd, path.join(cwd, 'node_modules'));
50-
5147
const moduleName = `oc-auth-${authConfig.type}`;
5248

5349
try {

0 commit comments

Comments
 (0)