minor corrections

This commit is contained in:
Pedro Pérez 2025-03-17 15:27:13 +01:00
parent bbbb4a28d3
commit e0d263e7ec

View File

@ -142,8 +142,8 @@ func New(config ...Config) *App {
Name: "",
Version: "",
EnvDirectory: ".env",
EnvMode: "development",
LogLevel: "debug",
EnvMode: EnvironmentDevelopment,
LogLevel: LogLevelDebug,
Timezone: "UTC",
Paseto: nil,
SMTPHost: "",
@ -232,7 +232,7 @@ func New(config ...Config) *App {
pk := ak.Public()
duration := time.Hour * 24 * 7 // 7 días por defecto
duration := time.Hour * 24 * 7 // 7 days by default
if os.Getenv("PASETO_DURATION") != "" {
durationStr := os.Getenv("PASETO_DURATION")
durationInt, err := time.ParseDuration(durationStr)