Skip to content

Commit

Permalink
fix: fix config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Fritz Seitz committed Oct 7, 2024
1 parent 92f6e41 commit c7b0a1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Bulwark.Auth/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public AppConfig()
"EMAIL_FROM_ADDRESS environment variable is required.");
MagicCodeExpireInMinutes = int.TryParse(Environment.GetEnvironmentVariable("MAGIC_CODE_EXPIRE_IN_MINUTES"),
out var expireInMinutes) ? expireInMinutes : 10;
AccessTokenExpireInSeconds = int.TryParse(Environment.GetEnvironmentVariable("ACCESS_TOKEN_EXPIRE_IN_MINUTES"),
out var accessExpireInMinutes) ? accessExpireInMinutes : 30;
RefreshTokenExpireInSeconds = int.TryParse(Environment.GetEnvironmentVariable("REFRESH_TOKEN_EXPIRE_IN_HOURS"),
out var refreshExpireInHours) ? refreshExpireInHours : 24;
AccessTokenExpireInSeconds = int.TryParse(Environment.GetEnvironmentVariable("ACCESS_TOKEN_EXPIRE_IN_SECONDS"),
out var accessTokenExpireInSeconds) ? accessTokenExpireInSeconds : 3600;
RefreshTokenExpireInSeconds = int.TryParse(Environment.GetEnvironmentVariable("REFRESH_TOKEN_EXPIRE_IN_SECONDS"),
out var refreshTokenExpireInSeconds) ? refreshTokenExpireInSeconds : 36000;
}
}

0 comments on commit c7b0a1e

Please sign in to comment.