This commit is contained in:
2026-01-04 15:24:29 -06:00
parent 74d75d08dd
commit 661def8a5c
3 changed files with 14 additions and 8 deletions

View File

@@ -7,14 +7,14 @@
// Import authRoutes directly from "./auth/routes" instead. // Import authRoutes directly from "./auth/routes" instead.
export { hashPassword, verifyPassword } from "./password"; export { hashPassword, verifyPassword } from "./password";
export { AuthService, type AuthResult } from "./service"; export { type AuthResult, AuthService } from "./service";
export { type AuthStore, InMemoryAuthStore } from "./store"; export { type AuthStore, InMemoryAuthStore } from "./store";
export { generateToken, hashToken, SESSION_COOKIE_NAME } from "./token"; export { generateToken, hashToken, SESSION_COOKIE_NAME } from "./token";
export { export {
type AuthMethod, type AuthMethod,
Session,
type SessionData, type SessionData,
type TokenId, type TokenId,
type TokenType, type TokenType,
Session,
tokenLifetimes, tokenLifetimes,
} from "./types"; } from "./types";

View File

@@ -2,8 +2,14 @@
// PostgreSQL database access with Kysely query builder and simple migrations // PostgreSQL database access with Kysely query builder and simple migrations
import * as fs from "fs"; import * as fs from "fs";
import {
type Generated,
Kysely,
PostgresDialect,
type Selectable,
sql,
} from "kysely";
import * as path from "path"; import * as path from "path";
import { Generated, Kysely, PostgresDialect, Selectable, sql } from "kysely";
import { Pool } from "pg"; import { Pool } from "pg";
import type { import type {
AuthStore, AuthStore,

View File

@@ -51,9 +51,9 @@ const routes: Route[] = [
return ret; return ret;
}; };
const rrr = lr(routes) const rrr = lr(routes);
const template=` const template = `
<html> <html>
<head></head> <head></head>
<body> <body>
@@ -64,8 +64,8 @@ const routes: Route[] = [
</ul> </ul>
</body> </body>
</html> </html>
` `;
const result = nunjucks.renderString(template,{rrr}) const result = nunjucks.renderString(template, { rrr });
const listing = lr(routes).join(", "); const listing = lr(routes).join(", ");
return { return {