@dudousxd/nestjs-telescope
Version:
Laravel Telescope-style observability console for NestJS — core: watchers, recorder, correlation, SQLite store, headless API.
22 lines • 909 B
TypeScript
import type { ResolvedDashboardAuth } from './dashboard-auth-config.js';
import { type TelescopeSessionUser } from './session-cookie.js';
/** Cookie name carrying the signed dashboard session. */
export declare const SESSION_COOKIE_NAME = "telescope_session";
/**
* Sign a fresh session for `user` and append it as a `Set-Cookie` on the
* response, scoped to the dashboard path and `Secure` when the request is https.
*/
export declare function issueSessionCookie(user: TelescopeSessionUser, context: {
auth: ResolvedDashboardAuth;
telescopePath: string;
request: unknown;
response: unknown;
now?: number;
}): void;
/** Append a cookie-clearing `Set-Cookie` (Max-Age=0) scoped to the dashboard path. */
export declare function clearSessionCookie(context: {
telescopePath: string;
request: unknown;
response: unknown;
}): void;
//# sourceMappingURL=session-cookie-io.d.ts.map