Skip to content

Commit

Permalink
remove FakeAuthAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
skovati committed Dec 27, 2023
1 parent bc9219e commit 9aeb31a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import cookieParser from 'cookie-parser';
import { AuthAdapter } from './packages/auth/types.js';
import { NoAuthAdapter } from './packages/auth/adapters/NoAuthAdapter.js';
import { CAMAuthAdapter } from './packages/auth/adapters/CAMAuthAdapter.js';
import { FakeAuthAdapter } from './packages/auth/adapters/FakeAuthAdapter.js';

async function main(): Promise<void> {
const logger = getLogger('main');
Expand All @@ -27,7 +26,7 @@ async function main(): Promise<void> {

await DbMerlin.init();

let authHandler: AuthAdapter = FakeAuthAdapter;
let authHandler: AuthAdapter;
switch (AUTH_TYPE) {
case 'none':
authHandler = NoAuthAdapter;
Expand All @@ -36,7 +35,7 @@ async function main(): Promise<void> {
authHandler = CAMAuthAdapter;
break;
default:
authHandler = FakeAuthAdapter;
throw new Error(`invalid auth type env var: ${AUTH_TYPE}`);
}

initApiPlaygroundRoutes(app);
Expand Down
14 changes: 0 additions & 14 deletions src/packages/auth/adapters/FakeAuthAdapter.ts

This file was deleted.

0 comments on commit 9aeb31a

Please sign in to comment.