diff --git a/express/auth/index.ts b/express/auth/index.ts index c81666f..cd23528 100644 --- a/express/auth/index.ts +++ b/express/auth/index.ts @@ -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"; diff --git a/express/database.ts b/express/database.ts index 24f2861..095bb99 100644 --- a/express/database.ts +++ b/express/database.ts @@ -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, diff --git a/express/routes.ts b/express/routes.ts index 7d2504a..7ad3978 100644 --- a/express/routes.ts +++ b/express/routes.ts @@ -51,9 +51,9 @@ const routes: Route[] = [ return ret; }; - const rrr = lr(routes) - - const template=` + const rrr = lr(routes); + + const template = ` @@ -64,8 +64,8 @@ const routes: Route[] = [ -` -const result = nunjucks.renderString(template,{rrr}) +`; + const result = nunjucks.renderString(template, { rrr }); const listing = lr(routes).join(", "); return {