first commit

This commit is contained in:
2026-04-14 19:44:21 -05:00
commit 068576cf4b
36 changed files with 13680 additions and 0 deletions

15
.env.example Normal file
View File

@@ -0,0 +1,15 @@
# Postgres
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/sistema_auth?schema=public"
DIRECT_DATABASE_URL="postgresql://postgres:postgres@localhost:5432/sistema_auth?schema=public"
# JWT contract
JWT_ISSUER="https://auth.local"
JWT_AUDIENCE="internal-apis"
JWT_ACCESS_TTL_SEC="900"
JWT_REFRESH_TTL_SEC="604800"
JWT_KID="auth-key-1"
JWT_PRIVATE_KEY_PEM="<replace-with-escaped-pem>"
JWT_PUBLIC_KEY_PEM="<replace-with-escaped-pem>"
# Optional hardening
REFRESH_TOKEN_PEPPER="change-me"