()
| 2 | private static instance: AuthMiddleware; |
| 3 | private constructor() {} |
| 4 | public static getInstance(): AuthMiddleware { |
| 5 | if (!AuthMiddleware.instance) AuthMiddleware.instance = new AuthMiddleware(); |
| 6 | return AuthMiddleware.instance; |
| 7 | } |
| 8 | public verifyToken(token: string): boolean { |
| 9 | return token.length > 10; // Basic implementation |
| 10 | } |