feat: add Auth.js Credentials login config + route

This commit is contained in:
2026-07-31 11:55:58 +07:00
parent 43a20d8530
commit a662ed8d6a
6 changed files with 166 additions and 0 deletions
+6
View File
@@ -8,3 +8,9 @@
# see CLAUDE.md's "Môi trường" section for the exact docker compose/run
# commands used to run the app and tests on this Windows host.
DATABASE_URL=postgres://asset_license_mgmt:change-me-local-dev@db:5432/asset_license_mgmt
# Auth.js v5 (next-auth@beta) — required. Random value used to sign/encrypt
# session JWTs. Generate one with `npx auth secret` (writes straight to
# .env/.env.local) or `openssl rand -base64 33`, then copy the value here.
# Do NOT reuse this placeholder — must be a real per-environment secret.
AUTH_SECRET=change-me-generate-a-real-secret