@dudousxd/nestjs-telescope
Version:
Laravel Telescope-style observability console for NestJS — core: watchers, recorder, correlation, SQLite store, headless API.
20 lines • 1.01 kB
TypeScript
import { type CanActivate, type ExecutionContext } from '@nestjs/common';
import type { ResolvedDashboardAuth } from '../auth/dashboard-auth-config.js';
import type { ResolvedCoreConfig } from '../config/options.js';
import { type TelescopeModuleOptions } from './telescope.options.js';
export declare class TelescopeGuard implements CanActivate {
private readonly options;
private readonly dashboardAuth;
private readonly config;
constructor(options: TelescopeModuleOptions, dashboardAuth?: ResolvedDashboardAuth | null, config?: ResolvedCoreConfig | null);
canActivate(context: ExecutionContext): Promise<boolean>;
private verifyRequestSession;
/**
* Sliding renewal: when a valid cookie is past 50% of its TTL, re-issue a
* fresh one so active users never get logged out mid-session. Appends a new
* Set-Cookie (preserving any others already on the response).
*/
private maybeRenew;
private runAuthorizer;
}
//# sourceMappingURL=telescope.guard.d.ts.map