setup resend client for email service

This commit is contained in:
juancwu 2025-12-14 18:24:30 -05:00
commit 82ac33ec66
5 changed files with 56 additions and 9 deletions

View file

@ -20,6 +20,9 @@ type Config struct {
JWTSecret string
JWTExpiry time.Duration
EmailFrom string
ResendKey string
}
func Load() *Config {
@ -40,6 +43,9 @@ func Load() *Config {
JWTSecret: envRequired("JWT_SECRET"),
JWTExpiry: envDuration("JWT_EXPIRY", 168*time.Hour), // 7 days default
EmailFrom: envString("EMAIL_FROM", ""),
ResendKey: envString("RESEND_KEY", ""),
}
return cfg