media-exporter-processor
Version:
Media processing API with thumbnail generation and cloud storage
19 lines • 746 B
TypeScript
import type { Context, Next } from "hono";
export declare class AuthService {
private staticToken;
private staticTokenBuffer;
constructor(staticToken: string);
/**
* Middleware for Hono to validate authentication tokens
*/
middleware(): (c: Context, next: Next) => Promise<(Response & import("hono").TypedResponse<"Authorization header required", 401, "text">) | (Response & import("hono").TypedResponse<"Invalid token", 401, "text">) | undefined>;
/**
* Validate token using time-safe comparison
*/
validateToken(token: string): boolean;
/**
* Extract token from Authorization header
*/
extractToken(authHeader: string): string | null;
}
//# sourceMappingURL=AuthService.d.ts.map