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.
export { hashPassword, verifyPassword } from "./password";
export { AuthService, type AuthResult } from "./service";
export { type AuthResult, AuthService } from "./service";
export { type AuthStore, InMemoryAuthStore } from "./store";
export { generateToken, hashToken, SESSION_COOKIE_NAME } from "./token";
export {
type AuthMethod,
Session,
type SessionData,
type TokenId,
type TokenType,
Session,
tokenLifetimes,
} from "./types";

View File

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

View File

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