Files
n8n-mcp/dist/utils/auth.d.ts
2025-12-05 12:01:31 +01:00

13 lines
543 B
TypeScript

export declare class AuthManager {
private validTokens;
private tokenExpiry;
constructor();
validateToken(token: string | undefined, expectedToken?: string): boolean;
generateToken(expiryHours?: number): string;
revokeToken(token: string): void;
private cleanupExpiredTokens;
static hashToken(token: string): string;
static compareTokens(plainToken: string, hashedToken: string): boolean;
static timingSafeCompare(plainToken: string, expectedToken: string): boolean;
}
//# sourceMappingURL=auth.d.ts.map