fix(auth): add JWT__RefreshKey config and env var fallback in JwtService

- Add JWT__RefreshKey to .env.example with documentation
- Add JWT__RefreshKey to docker-compose.yml and docker-compose.prod.yml
- Fix JwtService to check both IConfiguration and env vars (JWT__REFRESHKEY)
  for access token key and refresh token key, matching Program.cs pattern
- Fixes 'Jwt:RefreshKey is not configured' 500 error on register/login
This commit is contained in:
Arnaud Dartois committed 2026-07-25 18:02:43 +00:00
1 parent f6fbc082a1
commit 810900cd3e
4 files changed
+22 -8

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ services:
DATABASE_URL: ${DATABASE_URL:?DATABASE_URL is required}
# JWT
JWT__Key: ${JWT__Key:?JWT__Key is required}
JWT__RefreshKey: ${JWT__RefreshKey:?JWT__RefreshKey is required}
JWT__Issuer: ${JWT__Issuer:-heimdall}
JWT__Audience: ${JWT__Audience:-heimdall-api}
# ASP.NET