Eliminate all code paths, configuration, and documentation related to running without authentication. Require AUTH_SECRET and BASE_URL at startup, updating middleware, server logic, and runtime checks to assume auth is always enabled. Simplify onboarding, settings, and test helpers to reflect mandatory auth. Update environment examples, Docker and deployment docs, and CI/test configs. Remove no-auth-specific UI flows, test cases, and feature toggles.
7 lines
182 B
TypeScript
7 lines
182 B
TypeScript
if (!process.env.AUTH_SECRET?.trim()) {
|
|
process.env.AUTH_SECRET = 'vitest-auth-secret';
|
|
}
|
|
|
|
if (!process.env.BASE_URL?.trim()) {
|
|
process.env.BASE_URL = 'http://localhost:3003';
|
|
}
|