cleanup: remove DEBUG_EMAIL_PASSWORD email/password backdoor; add MIT LICENSE + .env.example
build / test (push) Failing after 12m52s
build / build (push) Has been skipped

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-07 07:53:53 -04:00
parent 534bba3b06
commit 46bf005ec3
5 changed files with 53 additions and 8 deletions
-4
View File
@@ -49,9 +49,6 @@ Three source files, compiled `src/*.ts` → `dist/*.js` (NodeNext ESM, `.js` imp
- `pool` — a shared `pg.Pool` from `AUTH_DATABASE_URL`. This is the same CNPG database the rest of
the product uses; Better Auth's tables (`user`, `session`, `account`, `jwks`, `oauthClient`, ...)
coexist with the app's own `users` table in the default schema.
- **`emailAndPassword` is DEBUG-ONLY scaffolding.** Enabled only when `DEBUG_EMAIL_PASSWORD=true`;
it exists solely to mint a session headlessly for debugging the OAuth token exchange without a
browser. **It must be off in normal operation.**
### `src/server.ts` — the Node HTTP server
@@ -118,7 +115,6 @@ Read from the code:
| `LOG_LEVEL` | no (`info`) | Better Auth logger level (`debug`/`info`). |
| `PORT` | no (`8080`) | HTTP listen port. |
| `PORTAL_CLIENT_ID` / `PORTAL_REDIRECT_URI` | no (have defaults) | Portal OIDC client seeded by `migrate.ts`. |
| `DEBUG_EMAIL_PASSWORD` | no | **Debug only.** `=true` enables email/password auth for headless debugging. Keep off. |
## Deployment