MCPcopy Create free account
hub / github.com/Dark-Brain07/PayForApi / getInstance

Method getInstance

lib/server/authMiddleware.ts:4–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 }

Callers 1

authMiddleware.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected