minor corrections
This commit is contained in:
parent
bbbb4a28d3
commit
e0d263e7ec
@ -142,8 +142,8 @@ func New(config ...Config) *App {
|
|||||||
Name: "",
|
Name: "",
|
||||||
Version: "",
|
Version: "",
|
||||||
EnvDirectory: ".env",
|
EnvDirectory: ".env",
|
||||||
EnvMode: "development",
|
EnvMode: EnvironmentDevelopment,
|
||||||
LogLevel: "debug",
|
LogLevel: LogLevelDebug,
|
||||||
Timezone: "UTC",
|
Timezone: "UTC",
|
||||||
Paseto: nil,
|
Paseto: nil,
|
||||||
SMTPHost: "",
|
SMTPHost: "",
|
||||||
@ -232,7 +232,7 @@ func New(config ...Config) *App {
|
|||||||
|
|
||||||
pk := ak.Public()
|
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") != "" {
|
if os.Getenv("PASETO_DURATION") != "" {
|
||||||
durationStr := os.Getenv("PASETO_DURATION")
|
durationStr := os.Getenv("PASETO_DURATION")
|
||||||
durationInt, err := time.ParseDuration(durationStr)
|
durationInt, err := time.ParseDuration(durationStr)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user