added some govno to postgres
This commit is contained in:
@@ -33,6 +33,9 @@ func Load() (*Config, error) {
|
||||
if cfg.JWTSecret == "" {
|
||||
return nil, fmt.Errorf("JWT_SECRET is required in .env file")
|
||||
}
|
||||
if len(cfg.JWTSecret) < 32 {
|
||||
return nil, fmt.Errorf("JWT_SECRET must be at least 32 characters long")
|
||||
}
|
||||
|
||||
if expStr := os.Getenv("JWT_EXPIRATION"); expStr != "" {
|
||||
d, err := time.ParseDuration(expStr)
|
||||
|
||||
Reference in New Issue
Block a user