fix login issue

This commit is contained in:
Aditya Siregar 2025-09-18 12:27:03 +07:00
parent be92ec8b23
commit 67812a1d75
2 changed files with 10 additions and 9 deletions

View File

@ -69,6 +69,14 @@ func (c *Config) Auth() *AuthConfig {
} }
} }
func (c *Config) GetCustomerJWTSecret() string {
return c.Jwt.Customer.Secret
}
func (c *Config) GetCustomerJWTExpiresTTL() int {
return c.Jwt.Customer.ExpiresTTL
}
func (c *Config) LogLevel() string { func (c *Config) LogLevel() string {
return c.Log.LogLevel return c.Log.LogLevel
} }
@ -84,11 +92,3 @@ func (c *Config) LogFormat() string {
func (c *Config) GetFonnte() *Fonnte { func (c *Config) GetFonnte() *Fonnte {
return &c.Fonnte return &c.Fonnte
} }
func (c *Config) GetCustomerJWTSecret() string {
return c.Jwt.Customer.Token.Secret
}
func (c *Config) GetCustomerJWTExpiresTTL() int {
return c.Jwt.Customer.Token.ExpiresTTL
}

View File

@ -11,5 +11,6 @@ type Token struct {
} }
type Customer struct { type Customer struct {
Token Token `mapstructure:"token"` ExpiresTTL int `mapstructure:"expires-ttl"`
Secret string `mapstructure:"secret"`
} }