Added auth

This commit is contained in:
2025-12-17 17:09:16 -07:00
parent 8c8252c83e
commit cc97015cf4
13 changed files with 1142 additions and 0 deletions

16
.env.example Normal file
View File

@@ -0,0 +1,16 @@
# openssl rand -base64 32
JWT_SECRET=development-secret-change-in-production
JWT_EXPIRY=7d
JWT_REFRESH_EXPIRY=30d
JWT_ISSUER=bunapi
JWT_AUDIENCE=bunapi-users
COOKIE_SECURE=false
# COOKIE_DOMAIN=localhost
NODE_ENV=development
# Database
DB_PATH=data/app.db