11 lines
299 B
TypeScript
11 lines
299 B
TypeScript
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;
|
|
} |