- Implement iterative session cookie candidate resolution in getAuthenticatedUser - Eliminate Hono first-match limitation causing mobile login redirect loops - Use absolute UTC ISO strings for PostgreSQL session expiry queries - Opportunistically clear host-level cookies upon shadow detection - Ensure exhaustive server-side session revocation across all cookie candidates on logout - Add automated regression test for cookie shadowing in server/main.test.ts - Rename and standardize tasks/path.md with 5-template orchestrator standard
9 lines
547 B
TypeScript
9 lines
547 B
TypeScript
import { Pool as _Pool } from "https://deno.land/x/postgres@v0.17.0/mod.ts";
|
|
// Instead of real pg connection, let's just create a test that shows how NOW() works vs Date.now()
|
|
console.log(
|
|
"Postgres uses the database server's local timezone for NOW() unless explicitly AT TIME ZONE 'UTC' is used or the server runs in UTC.",
|
|
);
|
|
console.log(
|
|
"In containerized environments, the Deno container and Postgres container often both default to UTC, but if one differs, NOW() in Postgres could be hours ahead/behind Deno's generated expires_at.",
|
|
);
|