Refmt
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const routes: Route[] = [
|
|||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
const rrr = lr(routes)
|
const rrr = lr(routes);
|
||||||
|
|
||||||
const template = `
|
const template = `
|
||||||
<html>
|
<html>
|
||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user