wip
This commit is contained in:
11
apps/website/lib/auth/index.ts
Normal file
11
apps/website/lib/auth/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { AuthService } from './AuthService';
|
||||
import { InMemoryAuthService } from './InMemoryAuthService';
|
||||
|
||||
let authService: AuthService | null = null;
|
||||
|
||||
export function getAuthService(): AuthService {
|
||||
if (!authService) {
|
||||
authService = new InMemoryAuthService();
|
||||
}
|
||||
return authService;
|
||||
}
|
||||
Reference in New Issue
Block a user