⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { resolveFileSecret } from "./file-secret";
export const MIN_AUTH_SECRET_LENGTH = 32;
export function resolveAuthSecret(
raw = resolveFileSecret("AUTH_SECRET"),
): string {
const secret = raw ?? "";
if (!secret) {
throw new Error(
"AUTH_SECRET is not set. Generate one with: openssl rand -hex 32",
);
}
if (secret.length < MIN_AUTH_SECRET_LENGTH) {
throw new Error(
"AUTH_SECRET is less than 32 characters, please generate a new one.",
);
}
return secret;
}