16 lines
399 B
TypeScript
16 lines
399 B
TypeScript
import type { SessionUser } from './lib/server/types';
|
|
|
|
declare global {
|
|
namespace App {
|
|
interface Locals {
|
|
user: SessionUser | null;
|
|
pbToken: string | null;
|
|
// Platform-admin (superuser dashboard) session — set from the
|
|
// platform_session cookie in hooks.server.ts. Separate from the
|
|
// fam user session; only /admin consumes it.
|
|
platformAdmin: boolean;
|
|
}
|
|
}
|
|
}
|
|
|
|
export {}; |