Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
/**
* Hono `ContextVariableMap` augmentation — declares the `user` and
* `session` slots populated by `sessionMiddleware`. Sibling plugins
* read `c.get("user")` typed as `Principal | null` thanks to this
* declaration; without it the value would type as `unknown`.
*/
import type { Principal } from "../principal/principal.js";
import type { BetterAuthSessionResult } from "../services/auth-service.js";
declare module "hono" {
interface ContextVariableMap {
user: Principal | null;
session: BetterAuthSessionResult;
}
}