Set config to env variables
This commit is contained in:
@@ -209,7 +209,7 @@ var jwtSecret = builder.Configuration["Jwt:Secret"];
|
||||
if (string.IsNullOrWhiteSpace(jwtSecret))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"JWT secret is not configured. Please set 'Jwt:Secret' in appsettings.json or environment variables.");
|
||||
"JWT secret is not configured. Please set 'Jwt:Secret' environment variable.");
|
||||
}
|
||||
|
||||
if (jwtSecret.Length < 32)
|
||||
|
||||
Reference in New Issue
Block a user